Skip to content

NavigationDuplicated Error after addRoute #3216

Closed
@cropr

Description

Version

3.3.2

Reproduction link

https://jsfiddle.net/cropr/86vnLj4k/

Steps to reproduce

Following scenario fails with NavigationDuplicated

  1. Have a router wildcard and navigating to an non existing url e.g. /aroute
  2. Doing a addRoute in the handling component of the wildcard, resulting in an updated routing table with a matching /aroute
  3. Trying to navigate to new /aroute either via $router.push or $router.replace

While the url does not change, the Navigation changes and thus the NavigationDuplicated error is incorrect

What is expected?

The router is changed to the new component matching /aroute

What is actually happening?

NavigationDuplicated error raised

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