Skip to content

Change URL without navigating to it #519

@ryespresso

Description

@ryespresso

Is your feature request related to a problem? Please describe.

In a project I am working on, we sometimes bring up a modal window, that we'd like to be linked to by a URL. So that if a user refreshes the screen, the modal appears.

When this modal appears, I'd like to change the URL, without navigating the user to that screen. When we close the URL, the URL will change back to where they were at.

Describe the solution you'd like

Functionality in $goto or elsewhere that allows you to change the URL without navigating away from the current page.

Describe alternatives you've considered

  • I was hoping $goto had this functionality, but I wasn't able to find a solution.
  • window.history.pushState or window.history.replaceState but it does not work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions