Spaces:
Runtime error
Runtime error
Update templates/redirect_page.html
Browse files
templates/redirect_page.html
CHANGED
|
@@ -5,16 +5,10 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Logging Out...</title>
|
| 7 |
<script type="text/javascript">
|
| 8 |
-
//
|
| 9 |
-
|
| 10 |
-
let urlParams = new URLSearchParams(window.location.search);
|
| 11 |
-
return urlParams.get(param);
|
| 12 |
-
}
|
| 13 |
|
| 14 |
window.onload = function() {
|
| 15 |
-
// Get table number from the URL
|
| 16 |
-
let tableNumber = getQueryParam("table");
|
| 17 |
-
|
| 18 |
// Construct the logout redirect URL with table number
|
| 19 |
let redirectURL = "https://biryanihub-dev-ed.develop.my.salesforce-sites.com/";
|
| 20 |
if (tableNumber) {
|
|
|
|
| 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 |
|
| 11 |
window.onload = function() {
|
|
|
|
|
|
|
|
|
|
| 12 |
// Construct the logout redirect URL with table number
|
| 13 |
let redirectURL = "https://biryanihub-dev-ed.develop.my.salesforce-sites.com/";
|
| 14 |
if (tableNumber) {
|