Spaces:
Sleeping
Sleeping
Create templates/redirect_page.html
Browse files
templates/templates/redirect_page.html
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Logging Out...</title>
|
7 |
+
<script type="text/javascript">
|
8 |
+
// Get the table number from Flask
|
9 |
+
var tableNumber = "{{ table_number }}";
|
10 |
+
window.onload = function() {
|
11 |
+
// Construct the logout redirect URL with table number
|
12 |
+
let redirectURL = "https://orgfarm-cf0e6d252a-dev-ed.develop.my.salesforce-sites.com/biryanihub";
|
13 |
+
if (tableNumber) {
|
14 |
+
redirectURL += "?table=" + encodeURIComponent(tableNumber);
|
15 |
+
}
|
16 |
+
// Open the new page with the table number
|
17 |
+
window.open(redirectURL, "_blank");
|
18 |
+
// Optionally, also redirect the current tab:
|
19 |
+
// window.location.href = redirectURL;
|
20 |
+
};
|
21 |
+
</script>
|
22 |
+
</head>
|
23 |
+
<body>
|
24 |
+
<h1>Logging out...</h1>
|
25 |
+
<p>Please wait while we log you out and redirect you.</p>
|
26 |
+
</body>
|
27 |
+
</html>
|