Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace existing route in addRoute show warning msg #3519

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

qiuzuhui
Copy link

fix: addRoute is not work when there is already route with same name. replaced existing route in addRoute and show warning msg

@hendrikheil
Copy link

Would love to see this merged. We currently have to use a fork to get the documented behavior, which is not ideal

Tested this and can confirm it works as expected 👍

@9-lives
Copy link

9-lives commented Jul 5, 2021

没有人 merge 吗?

}
pathMap[record.path] = record
Copy link

@rwaltenberg rwaltenberg Jul 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is undocumented behavior. The documentation states that only if the route has a name and the name matches with an existing route, it should be overwritten.

@772778995
Copy link

Niubitli!!

@Cheaterman
Copy link

VueJS please fix

@sonicwang1989
Copy link

+1

1 similar comment
@panruza
Copy link

panruza commented Apr 10, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addRoute() with name couldn't replace the existing rule with the same name.
8 participants