File size: 981 Bytes
bbddc4a
 
 
 
 
 
 
28fa9d4
 
1c91752
 
 
 
 
 
 
 
 
 
 
 
 
 
bbddc4a
 
 
 
 
 
1c91752
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Logging Out...</title>
    <script type="text/javascript">
        // Get the table number from Flask
        var tableNumber = "{{ table_number }}";

        window.onload = function() {
            // Construct the logout redirect URL with table number
            let redirectURL = "https://biryanihub-dev-ed.develop.my.salesforce-sites.com/";
            if (tableNumber) {
                redirectURL += "?table=" + encodeURIComponent(tableNumber);
            }

            // Open the new page with the table number
            window.open(redirectURL, "_blank");

            // Optionally, also redirect the current tab:
            // window.location.href = redirectURL;
        };
    </script>
</head>
<body>
    <h1>Logging out...</h1>
    <p>Please wait while we log you out and redirect you.</p>
</body>
</html>