Is it normal when passing a baseUrl to "createWebHistory" to have a trailing slash? #1835
Replies: 2 comments 3 replies
-
I have an isasue with this behaviour since I am working on a MFE project that uses React as well, and its router doesn't append a / to the base Url. |
Beta Was this translation helpful? Give feedback.
-
I think you might not need |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am writing this question since I noticed that when I create a router by passing it
createWebHistory(baseUrl)
it always appends a trailing slash. So if I pass the url "settings", it always redirects me to "settings/". This happens only on the baseUrl and not on its children.Is this behavior intended? Is there a way to change/prevent this?
I am using vue router 4.1.6
Beta Was this translation helpful? Give feedback.
All reactions