vuejs / router

🚦 The official router for Vue.js

Home Page:https://router.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

router.push with alias not changing original URL

alghifarifikri opened this issue · comments

Reproduction

https://jsfiddle.net/h3gdzkaf/3/

Steps to reproduce the bug

Add the following to your router:

{ path: '/bar', alias: '/bar/alias', component: Bar }

Expected behavior

when I'm access '/bar/alias' from '/bar', URL should be change

Actual behavior

original URL not change, always '/bar'

Additional information

No response

This is expected, it's considered a duplicated navigation and it's skipped.