Skip to content

V5 Migration Guide is missing breaking change of goto not working with external links #14659

@Kyle01

Description

@Kyle01

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
Screenshot 2024-12-10 at 1 30 00 PM

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.0

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions