BiryaniHubflask37 / templates /redirect_page.html
nagasurendra's picture
Update templates/redirect_page.html
28fa9d4 verified
raw
history blame
981 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logging Out...</title>
<script type="text/javascript">
// Get the table number from Flask
var tableNumber = "{{ table_number }}";
window.onload = function() {
// Construct the logout redirect URL with table number
let redirectURL = "https://biryanihub-dev-ed.develop.my.salesforce-sites.com/";
if (tableNumber) {
redirectURL += "?table=" + encodeURIComponent(tableNumber);
}
// Open the new page with the table number
window.open(redirectURL, "_blank");
// Optionally, also redirect the current tab:
// window.location.href = redirectURL;
};
</script>
</head>
<body>
<h1>Logging out...</h1>
<p>Please wait while we log you out and redirect you.</p>
</body>
</html>