mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 12:52:08 +01:00
Fix hash navigation issue in App component
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user