nagasurendra commited on
Commit
75f40ff
·
verified ·
1 Parent(s): 788f773

Update templates/redirect_page.html

Browse files
Files changed (1) hide show
  1. templates/redirect_page.html +9 -6
templates/redirect_page.html CHANGED
@@ -7,12 +7,15 @@
7
  <script type="text/javascript">
8
  // Wait for the page to load, then redirect
9
  window.onload = function() {
10
- // Open a new tab or window and navigate to a new URL
11
- window.open('https://biryanihub-dev-ed--c.develop.vf.force.com/apex/PublicLogin', '_blank');
12
- // Optionally, you can redirect the current tab too:
13
- //window.location.href = 'https://huggingface.co/spaces/nagasurendra/BiryaniHubflasksales';
14
-
15
- }
 
 
 
16
  </script>
17
  </head>
18
  <body>
 
7
  <script type="text/javascript">
8
  // Wait for the page to load, then redirect
9
  window.onload = function() {
10
+ // Log out first
11
+ window.location.href = 'https://biryanihub-dev-ed--c.develop.vf.force.com/secur/logout.jsp';
12
+
13
+ // Wait for a moment before redirecting to login page
14
+ setTimeout(function() {
15
+ window.location.href = 'https://biryanihub-dev-ed--c.develop.vf.force.com/apex/PublicLogin';
16
+ }, 2000);
17
+ };
18
+
19
  </script>
20
  </head>
21
  <body>