-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingready to implementplease submit PRs for these issues!please submit PRs for these issues!router
Milestone
Description
Describe the bug
Clicking a link that goes to an anchor on the page works but after you remove the anchor via the page store the link no longer works.
The use case i had was using anchors for modals, modal opens on anchor link and anchor link is removed on modal close.
Reproduction
Here's my original repro
https://stackblitz.com/edit/sveltejs-kit-template-default-qwsbag?file=src%2Froutes%2F%2Bpage.svelte
and here is a different approach that highlights the same issue made by a friend
https://stackblitz.com/edit/sveltejs-kit-template-default-fnttrd?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M1 Max
Memory: 900.20 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - /opt/homebrew/opt/node@18/bin/node
npm: 9.5.1 - /opt/homebrew/opt/node@18/bin/npm
Browsers:
Firefox: 114.0.1
Safari: 16.5.1Severity
serious, but I can work around it
Additional Information
The only work around atm is to force a page reload on modal close, which is not ideal
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingready to implementplease submit PRs for these issues!please submit PRs for these issues!router