Skip to content

Router: regression in relativeLinkResolution since 7.0.0  #26983

Closed

Description

@dirkluijk

🐞 bug report

Affected Package

The issue is caused by package @angular/router.

Is this a regression?

Yes, the previous version in which this bug was not present was: ^6.1.0

Description

The relativeLinkResolution: "corrected" in Angular Router, which was introduced in #22394, is broken in Angular 7.

🔬 Minimal Reproduction

https://stackblitz.com/edit/relative-link-res-7

  • Click on the /lazy/comp/b/comp/c hyperlink
  • Click on the ../../ relative hyperlink
  • An error occurs: `Error: Cannot match any routes. URL Segment: 'lazy/comp/b/comp'
  • Expected: route changing to /lazy/comp/b

This works on Angular 6.1: https://stackblitz.com/edit/relative-link-res-6

🌍 Your Environment

Angular Version:


Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.10.4
@angular-devkit/build-angular     0.10.4
@angular-devkit/build-optimizer   0.10.4
@angular-devkit/build-webpack     0.10.4
@angular-devkit/core              7.0.4
@angular-devkit/schematics        7.0.4
@angular/cli                      7.0.4
@angular/compiler                 7.0.0
@ngtools/webpack                  7.0.4
@schematics/angular               7.0.4
@schematics/update                0.10.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.19.1

Activity

  1. added this to the needsTriage milestone on Nov 7, 2018
  2. sarunint commented on Nov 7, 2018

    @sarunint
    Contributor

    Looks like #25740 caused this.

  3. sarunint commented on Nov 7, 2018

    @sarunint
    Contributor

    PR opened: #26990

  4. added a commit that references this issue on Nov 7, 2018
    da59206
  5. added
    regression
    on Nov 13, 2018
  6. modified the milestones: needsTriage, Backlog on Nov 13, 2018
  7. added a commit that references this issue on Nov 14, 2018
    d304427
  8. 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.

  9. locked and limited conversation to collaborators on Sep 14, 2019
  10. added a commit that references this issue on Nov 20, 2026
    1c1776c
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: routerfreq2: mediumregressiontype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions