Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eliabntt committed Sep 20, 2023
1 parent ed2b0f4 commit aac1b3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
let currentURL = window.location.pathname
let currentURL = window.location.href;
let lowerCaseURL = currentURL.toLowerCase();
console.log(lowerCaseURL);
console.log(lowerCaseURL === "/grade-rr");
if (lowerCaseURL === "/grade-rr" && currentURL !== "/GRADE-RR")
window.location.replace("GRADE-RR");
if (lowerCaseURL.contains("grade"))
window.location.href = "https://grade.is.tue.mpg.de";
else
window.location.replace("/#/404")

Expand Down

0 comments on commit aac1b3e

Please sign in to comment.