Skip to content

Add shallow routing #21

@webJose

Description

@webJose

Sveltekit provides this feature named Shallow routing. In a nutshell, specifying an empty string as URL, the current URL is used to push or replace state. The concept itself is only useful with pushState, though.

Technical Details

To achieve this, Location.navigate() needs to account for the special case of the empty string, in which case the current URL is pushed/replaced with the provided state data.

It is like 95% done already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions