mirror of
https://github.com/Snigdha-OS/snigdhaos-web-dev.git
synced 2025-09-06 21:25:11 +02:00
21 lines
586 B
HTML
21 lines
586 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>404 - Not Found</title>
|
|
<script>
|
|
// Redirect all 404 routes to the homepage (index.html) to let React Router handle routing
|
|
var redirectTo = '/';
|
|
var pathname = location.pathname;
|
|
if (pathname && pathname !== '/' && pathname !== '/index.html') {
|
|
redirectTo += pathname;
|
|
}
|
|
location.replace(redirectTo);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Redirecting...</p>
|
|
</body>
|
|
</html>
|