Skip to content

Commit f9367f6

Browse files
committed
fix github page single page reload 404
1 parent 077f7d1 commit f9367f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

public/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
2727
<title>ArchLinuxStudio</title>
28+
29+
<script type="text/javascript">
30+
(function () {
31+
let redirect = sessionStorage.redirect;
32+
delete sessionStorage.redirect;
33+
if (redirect && redirect != location.href) {
34+
history.replaceState(null, null, redirect);
35+
}
36+
})();
37+
</script>
2838
</head>
2939
<body>
3040
<noscript>You need to enable JavaScript to run this app.</noscript>

0 commit comments

Comments
 (0)