Skip to content

Commit

Permalink
update redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 15, 2024
1 parent b0ffb77 commit c79ca1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _includes/_404_redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
}

if(url.startsWith("pub/")){
window.location.assign("https://pub.fenicsproject.org/" + url.substring(4))
window.location.assign("http://pub.fenicsproject.org/" + url.substring(4))
}
if(url == "pub"){
window.location.assign("http://pub.fenicsproject.org/")
}
if(url.startsWith("olddocs/")){
window.location.assign("https://olddocs.fenicsproject.org/" + url.substring(8))
}
if(url == "olddocs"){
window.location.assign("https://olddocs.fenicsproject.org/")
}
</script>

0 comments on commit c79ca1b

Please sign in to comment.