Skip to content

Commit

Permalink
feat(build): fluidattacks#1135 fix url redirection
Browse files Browse the repository at this point in the history
- override 404 html page to redirect to main page

Signed-off-by: Robin Quintero <[email protected]>
  • Loading branch information
rohaquinlop authored and danmur97 committed Sep 6, 2023
1 parent 9890314 commit 07d3f34
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ strict: true
docs_dir: src
theme:
name: material
custom_dir: overrides
logo: assets/favicon.svg
favicon: assets/favicon.svg
language: en
Expand Down
14 changes: 14 additions & 0 deletions docs/overrides/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<link rel="canonical" href="/">
<meta name="robots" content="noindex">
<script>var anchor=window.location.hash.substr(1);location.href="/"+(anchor?"#"+anchor:"")</script>
<meta http-equiv="refresh" content="0; url=/">
</head>
<body>
Redirecting...
</body>
</html>

0 comments on commit 07d3f34

Please sign in to comment.