-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
37 lines (34 loc) · 1.32 KB
/
404.html
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
32
33
34
35
36
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>