mirror of
https://github.com/DidiDidi129/Website.git
synced 2026-04-05 12:04:38 +00:00
24 lines
557 B
HTML
24 lines
557 B
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>Redirecting...</title>
|
||
<script>
|
||
// Get the current path, remove leading slash
|
||
const path = window.location.pathname.slice(1);
|
||
|
||
// Redirect to /#path if there’s a path
|
||
if (path) {
|
||
window.location.replace('/#' + path);
|
||
} else {
|
||
// fallback to home
|
||
window.location.replace('/');
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<p>Redirecting...</p>
|
||
<p>If you are not redirected automatically, <a id="fallback" href="/">click here</a>.</p>
|
||
</body>
|
||
</html>
|