Why are trailing slashes appended to the URL on refresh only for certain routes? #10237
Unanswered
Susccy
asked this question in
Questions (Nuxt 2)
Replies: 2 comments
-
Can someone know solution or root cause for this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bump Have tried the following, but that causes an error page when accessing a page with a trailing slash. I just want it to remove the trailing slash... not present an error page |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tested this with a sample app in all 3 rendering modes. This app has 3 pages:
example.com
example.com/sample
example.com/dynamic/_id
When refreshing these pages in different rendering modes, in some cases a trailing slash is appended and in others not. These are the results:
SSR (default mode):
SSG (
target: "static"
):CSR (
target: "static", ssr: false
):What's the matter with these inconsistencies? Isn't this kinda bad for SEO in terms of duplicate pages?
Beta Was this translation helpful? Give feedback.
All reactions