mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-28 20:32:19 +01:00
Fix hash navigation issue in App component
This commit is contained in:
@@ -16,7 +16,11 @@ export default function App() {
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
window.location.hash = entry.target.id;
|
||||
if (entry.target.id === "about") {
|
||||
window.location.hash = "";
|
||||
} else {
|
||||
window.location.hash = entry.target.id;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user