Skip to content

Commit

Permalink
Add improved 404 page with redirection and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Sep 10, 2024
1 parent 5d585d7 commit c504c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
// Get the current path of the 404 URL (e.g., "/a", "/b", etc.)
var currentPath = window.location.pathname;

window.open('https://robotikabrno.cz', '_blank');

// Redirect to stary.robotikabrno.cz with the same path
window.location.href = "https://stary.robotikabrno.cz" + currentPath;

// Open robotikabrno.cz in a new tab
window.open('https://robotikabrno.cz', '_blank');
};
</script>
<style>
Expand Down

0 comments on commit c504c19

Please sign in to comment.