Skip to content

Commit

Permalink
Create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgoyalevil authored Jun 15, 2024
1 parent 6f987cf commit 1db2b18
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting...</title>
<script>
// JavaScript to handle the redirection
window.onload = function() {
// Get the current URL path and query string
const currentPath = window.location.pathname;
const currentSearch = window.location.search;

// Define the target URL
const targetDomain = 'https://dashboard.startupkro.com';

// Construct the new URL
const newUrl = targetDomain + currentPath + currentSearch;

// Redirect to the new URL
window.location.href = newUrl;
};
</script>
</head>
<body>
<h1>Redirecting...</h1>
<p>If you are not redirected automatically, <a id="redirectLink" href="#">click here</a>.</p>
<script>
// Update the fallback link with the new URL
const currentPath = window.location.pathname;
const currentSearch = window.location.search;
const targetDomain = 'https://dashboard.startupkro.com';
const newUrl = targetDomain + currentPath + currentSearch;
document.getElementById('redirectLink').href = newUrl;
</script>
</body>
</html>

0 comments on commit 1db2b18

Please sign in to comment.