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

link

parent 32bc7d0f
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ export const useNavigation = () => { ...@@ -104,7 +104,7 @@ export const useNavigation = () => {
console.log("Found scrollToId: " + scrollToId) console.log("Found scrollToId: " + scrollToId)
paramsAdded = true; paramsAdded = true;
// Wenn bereits Parameter existieren, fügen wir & hinzu, ansonsten ? // Wenn bereits Parameter existieren, fügen wir & hinzu, ansonsten ?
const separator = paramsAdded ? '?' : '&'; const separator = paramsAdded ? '&' : '?';
url += `${separator}scrollTo=${scrollToId}`; url += `${separator}scrollTo=${scrollToId}`;
} }
console.log("Final URL:", url); 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