Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

useAsDefault and browser's history #416

Open

Description

@ThomasGilbert

Hi,

I'm migrating my app using the new component routing approach. I came across the following issue : if I specify the useAsDefault attribute in a route, the rule is correctly applied and I get directed to the expected component. But, if I click on the browser's Back button, it stays on the same page. Looks like it goes back to the previously requested page then the route rule is applied again etc...

I think that the state should be saved in the history with replaceState instead of pushState in case of 'useAsDefault' redirection...

Activity

  1. ThomasGilbert commented on May 26, 2016

    @ThomasGilbert
    Author

    Is this the right place to report such an issue or should I post to Angular Router 2 as instead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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