Vue router adds trailing slash #2594
-
Reproductionhttps://home-5019203486.app-ionos.space/what-counts-as-extraordinary-ability Steps to reproduce the bugIs there a mechanism for disabling vue-router adding a trailing slash? It's automatically creating a 301 on a statically generated site. I'm forced to use middleware to handle the issue but I would rather not have to do that From: Expected behaviorVisiting https://home-5019203486.app-ionos.space/what-counts-as-extraordinary-ability doesn't create a 301. Actual behaviorVisiting https://home-5019203486.app-ionos.space/what-counts-as-extraordinary-ability does creates a 301. Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In its current version, Vue Router doesn't add a trailing slash unless the route is defined with it. This is very likely to be your hosting service or an nginx rule or similar |
Beta Was this translation helpful? Give feedback.
In its current version, Vue Router doesn't add a trailing slash unless the route is defined with it. This is very likely to be your hosting service or an nginx rule or similar