Skip to content

Commit

Permalink
better deep path routing
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikWatts committed Oct 17, 2024
1 parent 4e3178e commit ab33b47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="refresh" content="0; URL='/chess-arena/'" />
<title>Page Not Found</title>
<script>
// Preserve the URL and load the index.html file
window.location.href = window.location.origin + '/chess-arena/index.html' + window.location.pathname + window.location.search;
</script>
</head>
<body></body>
</html>

0 comments on commit ab33b47

Please sign in to comment.