Skip to content
Snippets Groups Projects
Commit 57bf6b5d authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

link

parent 432d1f6f
No related branches found
No related tags found
No related merge requests found
Pipeline #535268 passed
......@@ -102,9 +102,9 @@ export const useNavigation = () => {
// 3. Scroll-Logik (scrollToId)
if (scrollToId) {
console.log("Found scrollToId: " + scrollToId)
paramsAdded = true;
// Wenn bereits Parameter existieren, fügen wir & hinzu, ansonsten ?
const separator = paramsAdded ? '&' : '?';
paramsAdded = true;
url += `${separator}scrollTo=${scrollToId}`;
}
console.log("Final URL:", url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment