Skip to content

Url is only updated the first time with UrlUpdateStrategy = "eager" #27116

Closed

Description

@marcinsydor

🐞 bug report

Affected Package

The issue is caused by package @angular/router

Is this a regression?

It's a new future in ^7.1.0-rc.0

Description

I have "protected" page and a guard which returns UrlTree object after 3s. As I expect the first time when I click "protected" link the url is updated to /protected and after 3 seconds to /login segment. And I see the login page content.

When I click again "protected" link the url is changed to /protected but after 3 seconds the segment remaind the same. I think it sould see /login segment again.

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-routing-eager-strategy

Activity

  1. added this to the needsTriage milestone on Nov 16, 2018
  2. jasonaden commented on Nov 27, 2018

    @jasonaden
    Contributor

    Awesome issue. Thanks for this one! I'll mark this for our next iteration and it should be pulled in within a couple weeks.

  3. modified the milestones: needsTriage, Backlog on Nov 27, 2018
  4. added a commit that references this issue on Dec 20, 2018
    07ada7f
  5. added 2 commits that reference this issue on Jan 15, 2019
    67e6b63
    6ae7aee
  6. angular-automatic-lock-bot commented on Sep 14, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions