nagasurendra commited on
Commit
919a2e0
·
verified ·
1 Parent(s): d8dce64

Update templates/redirect_page.html

Browse files
Files changed (1) hide show
  1. templates/redirect_page.html +9 -7
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 (if needed)
9
  var tableNumber = "{{ table_number }}";
10
  window.onload = function() {
11
- // Construct the logout redirect URL with table number (optional)
12
- let redirectURL = "/login"; // Redirect to login page
13
  if (tableNumber) {
14
  redirectURL += "?table=" + encodeURIComponent(tableNumber);
15
  }
16
- // Optionally, redirect the current tab to the login page
17
- window.location.href = redirectURL;
 
 
18
  };
19
  </script>
20
  </head>
21
  <body>
22
  <h1>Logging out...</h1>
23
- <p>Please wait while we log you out and redirect you to the login page.</p>
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>