Skip to content

Commit edab4c6

Browse files
committed
Fix the /index.html url in the docs
1 parent dfa9865 commit edab4c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.html

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<div id="app"></div>
1717
<script>window.$docsify = { name: 'SQL.js', repo: 'https://github.com/sql-js/sql.js/' }</script>
1818
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
19+
<script>
20+
let url = new URL(window.location);
21+
url.pathname = url.pathname.replace(/\/index.html$/, '/');
22+
if (window.location.toString() !== url.toString()) window.location = url;
23+
</script>
1924
</body>
2025

2126
</html>

0 commit comments

Comments
 (0)