Follow

Redirect in new page after embed redirect

You can insert a bit of code in your confirmation message that can redirect the entire page, rather than just in the area where the booking widget is located. To do this, insert a snippet of code into the Confirmation Message of the Booking Link, and input the URL of the page you want your customers to be redirected: 
 
1. Go to the last step of the Booking Link and click "Customize":
Inline image 1
 
2. Under Confirmation Message, insert this code and fill in the part in bold:
 
<h2>You will be redirected to the invoice page</h2>
<script type="text/javascript">
var redirectUrl = "[INSERT REDIRECT URL HERE]";
 
var current = document.location;
//alert(current);
current = String(current);
//alert(typeof current);
var urlpart = current.split("?");
var allGetVariables = urlpart[1];
redirectUrl = redirectUrl + "?" + allGetVariables;
 
setTimeout(function(){
window.parent.location = redirectUrl;
},1000);
</script>

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk