Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
irekponor committed Sep 22, 2024
1 parent ba71eb1 commit e452b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
(function () {
var currentPath = window.location.pathname + window.location.search + window.location.hash;

// Ensure the current path starts with /Planet
// Check if the path already starts with /Planet and prevent duplication
if (!currentPath.startsWith("/Planet")) {
// Only prepend /Planet if it is not already there
currentPath = "/Planet" + currentPath;
}

Expand Down

0 comments on commit e452b6b

Please sign in to comment.