Skip to content

<router-link> with exact doesn't seem to apply active class for named routes correctly (2.0) #622

Closed
@jwahdatehagh

Description

@jwahdatehagh

Vue.js & vue-router.js version

2.0.0-rc.3, 2.0.0-rc.3

Steps to reproduce

<router-link to="/" exact>Start</router-link> applies the active class but

<router-link :to="{ name: 'start' }" exact>Start</router-link> doesn't.

Problem

Should be the isSameRoute function in /src/util/route, but i cant find the error.

Link to reproduce

Here is a jsfiddle with that shows the behaviour: http://jsfiddle.net/jwahdatehagh/feowLxqm/1/
(thanks to @posva)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions