Skip to content

Commit

Permalink
fix property access
Browse files Browse the repository at this point in the history
  • Loading branch information
svehe committed Sep 14, 2023
1 parent a2702b9 commit fce414e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
</style>
<script>
window.onload=function(){
window.location.replace(window.location.origin + `?redirect=${window.location.path}`);
const path = window.location.pathname;
window.location.replace(window.location.origin + `?redirect=${path}`)
}
</script>
</head>
Expand Down

0 comments on commit fce414e

Please sign in to comment.