Skip to content

First routing to module fails when user navigates by hash changing #13491

Closed

Description

@popinguy

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
After upgrading from 2.1.0-beta.0 to 2.3.1, we are faced with the following problem: router navigates to previous page when user follow to new page by clicking a-link. It's reproduced once for pages which presents as modules. When module is loaded on browser everything is fine. It's OK for angular versions 2.1.0-beta.0 and less.
Our specific case is navigation by a-link because we have portal application which integrated to another complex web-application. And navigation is usually initiated by not-angular app within clicking menu links.

Expected behavior
Any navigation initiated by address changes should be completed successfully.

Minimal reproduction of the problem with instructions
Plunker: https://plnkr.co/edit/hpkyfVyc3WLdWortxXFT

  1. Click button "Page 1" - page 1 is loaded, URL is correct.
  2. Click link "Page 2" - page 2 is loaded, but URL is wrong.

What is the motivation / use case for changing the behavior?
NA

Please tell us about your environment:
Ubuntu 14.04, NPM, Webpack, Node 7.x

  • Angular version:
    2.3.1

  • Browser:
    all

  • Language:
    all

Activity

  1. added
    regression
    on Dec 15, 2016
  2. added a commit that references this issue on Dec 21, 2016
    de2590d
  3. added a commit that references this issue on Dec 21, 2016
    a38f14b
  4. angular-automatic-lock-bot commented on Sep 10, 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.

  5. locked and limited conversation to collaborators on Sep 10, 2019
  6. added a commit that references this issue on Nov 20, 2026
    e70fbc2
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

    area: routerregression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions