Skip to content

Routes with aliases and named child routes cause warnings #1119

@Dadibom

Description

@Dadibom

Vue.js / vue-router versions

>= 2.1.2

Reproduction Link

https://jsbin.com/satalijiga/edit?js,console

Steps to reproduce

Give a child route a name, add an alias to the parent

What is actually happening?

The console is blasted with warnings about duplicate named route definitions. This happened at 2.1.2

"[vue-router] Duplicate named routes definition: { name: "test.subpage", path: "/subpage" }"

Activity

SuperAL

SuperAL commented on Mar 27, 2017

@SuperAL

Updated to vue-router@2.3.0,this problem still exists.
[vue-router] Duplicate named routes definition: { name: "monitor", path: "index.html/monitor" }

posva

posva commented on Mar 27, 2017

@posva
Member

Create a new issue with a repro. The one provided before doesn't produce any warning now. You can use this template: http://jsfiddle.net/posva/9r6xhqbp/

samayo

samayo commented on Sep 17, 2017

@samayo

@yyx990803 Why is this closed? I have the same issue. At least it should be answered or referenced

trollepierre

trollepierre commented on Nov 2, 2017

@trollepierre

Evan closed it because the issue was fixed in the commit 6730768

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

        Participants

        @posva@samayo@trollepierre@Dadibom@SuperAL

        Issue actions

          Routes with aliases and named child routes cause warnings · Issue #1119 · vuejs/vue-router