Why does accessing base automatically add ‘/’ after the route? #2220
-
Reproductionhttps://github.com/LeeSamFong/vue-router-demo Steps to reproduce the bug
Expected behaviorWhen base is not the default value, Actual behavior![]() ![]() When my base is not the default value, after accessing the root route Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It’s a convention, similar to example.com becoming example.com/. |
Beta Was this translation helpful? Give feedback.
-
But if I don't set the base, So is this a bug? |
Beta Was this translation helpful? Give feedback.
-
it's not a bug, the browser hides the slash but if you check |
Beta Was this translation helpful? Give feedback.
It’s a convention, similar to example.com becoming example.com/.