Fix hash navigation issue in App component

This commit is contained in:
dertyp7
2024-01-14 12:48:47 +01:00
parent fe5b271905
commit 851148c421

View File

@@ -16,7 +16,11 @@ export default function App() {
(entries) => { (entries) => {
entries.forEach((entry) => { entries.forEach((entry) => {
if (entry.isIntersecting) { if (entry.isIntersecting) {
window.location.hash = entry.target.id; if (entry.target.id === "about") {
window.location.hash = "";
} else {
window.location.hash = entry.target.id;
}
} }
}); });
}, },