-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Closed as not planned
Copy link
Description
Describe the bug
The V5 Migration Guide does not list that the goto function no longer works with external links, and that it instead needs to be change to window.location =.
If the team confirms they do want the migration guide to include this, I will update the migration guide under the "Other breaking changes" section to include this change.
Reproduction
Because this is an error with the documentation, the reproduction steps are to go to the migration guide and notice that goto is not referenced.
To show that goto does not work on external links, use a goto with an external path in svelte5 and when invoked, notice the below error in the console

Logs
No response
System Info
n/a - change to the documentation requested.
`goto` not working with external links with the below system info:
System:
OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (8) x64 AMD EPYC 7R13 Processor
Memory: 24.01 GB / 30.67 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 20.8.1 - ~/.nvm/versions/node/v20.8.1/bin/node
npm: 10.1.0 - ~/.nvm/versions/node/v20.8.1/bin/npm
npmPackages:
svelte: ^5.10.0 => 5.10.0Severity
annoyance
rc-kkr and RyanClementsHax
Metadata
Metadata
Assignees
Labels
No labels