Skip to content

Commit

Permalink
Add 404.html that redirects to root
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfml authored Mar 1, 2023
1 parent 57cc823 commit 64bbded
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions report-viewer/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!doctype html>
<html lang="">
<script>
const UrlPath = window.location.pathname;
const branch = UrlPath.split('/')[1];
const url = "https://jplag.github.io/" + branch + "/";
location.replace(url);
</script>
</html>

0 comments on commit 64bbded

Please sign in to comment.