nagasurendra commited on
Commit
28fa9d4
·
verified ·
1 Parent(s): 80f989c

Update templates/redirect_page.html

Browse files
Files changed (1) hide show
  1. templates/redirect_page.html +2 -8
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
- // Function to get query parameter value from URL
9
- function getQueryParam(param) {
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) {