nagasurendra commited on
Commit
067d5a1
·
verified ·
1 Parent(s): ca3f4e0

Update templates/redirect_page.html

Browse files
Files changed (1) hide show
  1. templates/redirect_page.html +8 -9
templates/redirect_page.html CHANGED
@@ -1,3 +1,5 @@
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
@@ -7,15 +9,12 @@
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.develop.my.salesforce-sites.com/';
16
- }, 2000);
17
- };
18
-
19
  </script>
20
  </head>
21
  <body>
 
1
+
2
+
3
  <!DOCTYPE html>
4
  <html lang="en">
5
  <head>
 
9
  <script type="text/javascript">
10
  // Wait for the page to load, then redirect
11
  window.onload = function() {
12
+ // Open a new tab or window and navigate to a new URL
13
+ window.open('https://biryanihub-dev-ed.develop.my.salesforce-sites.com/', '_blank');
14
+ // Optionally, you can redirect the current tab too:
15
+ // window.location.href = 'https://www.example.com';
16
+
17
+ }
 
 
 
18
  </script>
19
  </head>
20
  <body>