feat(website): implement SPA route handling and remove 404.html
This commit is contained in:
@@ -46,15 +46,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script>
|
||||
// Restore SPA path from 404.html redirect (GitHub Pages)
|
||||
;(function () {
|
||||
var p = new URLSearchParams(window.location.search).get('p')
|
||||
if (p) {
|
||||
window.history.replaceState(null, '', window.location.pathname + p + window.location.hash)
|
||||
}
|
||||
})()
|
||||
</script>
|
||||
<script type="module" src="./src/main.tsx"></script>
|
||||
<script>
|
||||
// Dynamically update html lang attribute based on i18n detection
|
||||
|
||||
Reference in New Issue
Block a user