Skip to content

Script isn't applied when using client-side navigation #63

@twocaretcat

Description

@twocaretcat

Once Komoot loads the initial page, subsequent navigation is done using client-side routing.

The script runs fine if we navigate directly to the URL we want to script to run on, but if we navigate to the page using the Komoot site, it doesn't.

Add a mutation observer or watch for changes to the URL so we can remount our custom components when the page changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Stage

    🟢 ready

    Priority

    p0

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions