Spaces:
Runtime error
Runtime error
Update templates/redirect_page.html
Browse files
templates/redirect_page.html
CHANGED
@@ -5,21 +5,23 @@
|
|
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 = "/
|
13 |
if (tableNumber) {
|
14 |
redirectURL += "?table=" + encodeURIComponent(tableNumber);
|
15 |
}
|
16 |
-
//
|
17 |
-
window.
|
|
|
|
|
18 |
};
|
19 |
</script>
|
20 |
</head>
|
21 |
<body>
|
22 |
<h1>Logging out...</h1>
|
23 |
-
<p>Please wait while we log you out and redirect you
|
24 |
</body>
|
25 |
-
</html>
|
|
|
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-1acf2d6988-dev-ed.develop.my.salesforce-sites.com/QRMenu";
|
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>
|