Skip to content

Commit

Permalink
updating 404
Browse files Browse the repository at this point in the history
  • Loading branch information
ehedlin committed Dec 2, 2023
1 parent 8bf38ff commit ee8353a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>Page Moved</title>
</head>
<body>
<p>
The page you are looking for has moved. Please visit
<a href="https://ubc-vision.github.io/stablekeypoints/"
>https://ubc-vision.github.io/stablekeypoints/</a
>.
</p>
</body>
<head>
<title>Redirecting...</title>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
console.log("404 page loaded");

var currentUrl = window.location.href;
console.log("Current URL: " + currentUrl);

if (currentUrl.toLowerCase().includes("/stablekeypoints")) {
console.log("Redirecting to the correct URL");
window.location.href =
"https://ubc-vision.github.io/stablekeypoints/";
} else {
console.log("No redirection needed");
}
});
</script>
</head>
<body>
<p>Redirecting...</p>
<p>
If you are not redirected,
<a href="https://ubc-vision.github.io/stablekeypoints/">click here</a>.
</p>
</body>
</html>

0 comments on commit ee8353a

Please sign in to comment.