mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
🐛 fix(router): has to browser
This commit is contained in:
13
index.html
13
index.html
@@ -90,6 +90,19 @@
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'GTM-5HXGM54C');
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function(l) {
|
||||
if (l.search[1] === '/' ) {
|
||||
var decoded = l.search.slice(1).split('&').map(function(s) {
|
||||
return s.replace(/~and~/g, '&')
|
||||
}).join('?');
|
||||
window.history.replaceState(null, null,
|
||||
l.pathname.slice(0, -1) + decoded + l.hash
|
||||
);
|
||||
}
|
||||
}(window.location))
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
@@ -1,5 +1,4 @@
|
||||
|
||||
import { HashRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
|
||||
import { Layout } from './components/layout/Layout';
|
||||
import { Home } from './pages/Home';
|
||||
import { About } from './pages/About';
|
||||
|
Reference in New Issue
Block a user