-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f987cf
commit 1db2b18
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |