/ concept-collection / benchcompress
Sign in
concept-collection / benchcompress
fix gh pages routing issue
Jeremy Magland <jmagland@flatironinstitute.org> committed commit 4b14aa00c1c9 parent 447f8f1 Browse files
1 changed file+15−2
web-ui/index.htmlmodified+15−2View file
@@ -2,12 +2,25 @@
22 <html lang="en">
33 <head>
44 <meta charset="UTF-8" />
5- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
5+ <script>
6+ // Single Page Apps for GitHub Pages
7+ // MIT License
8+ // https://github.com/rafgraph/spa-github-pages
9+ (function(l) {
10+ if (l.search[1] === '/' ) {
11+ var decoded = l.search.slice(1).split('&')[0].split('=')[0].replace(/~and~/g, '&');
12+ window.history.replaceState(null, null,
13+ l.pathname.slice(0, -1) + decoded + l.hash
14+ );
15+ }
16+ }(window.location))
17+ </script>
18+ <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
619 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
720 <title>Zia Benchmark</title>
821 </head>
922 <body>
1023 <div id="root"></div>
11- <script type="module" src="/src/main.tsx"></script>
24+ <script type="module" src="./src/main.tsx"></script>
1225 </body>
1326 </html>
moveopenescclose