-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
/user/ redirect to /user #22254
Comments
Would you provide a reproduction? 🙏 |
When I use nuxt generate /test/ goes to /test however in dev no changes /test/ to /test/ Due to some issue can't prerender in nuxt to test. You need to test locally |
Let me check |
I have a new small project the same issue occurred, but I would like to provide private repository access. @danielroe Which user should I give private repo access to? |
/font-keren/ redirects to /font-keren I tried creating middleware to fix this, but it goes into an infinite loop of redirecting Command - npm run generate Deployed on cloudflare pages |
Provide a minimal reproduction please. Otherwise it will be difficult to help. So does Cloudflare pages apparently, see https://developers.cloudflare.com/pages/platform/serving-pages/#route-matching You can maybe work around by using the nitro option below (available since Nitro v2.6.3): defineNuxtConfig({
nitro: {
prerender: {
autoSubfolderIndex: false
}
}) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Please try the above mentioned fix :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
This is not a minimal reproduction. Please check the text above and provide one with as little business logic, additional files etc. as possible. I'm afraid that it is not feasible going through a project file that contains more than just how to reproduce the issue. Also, please add instructions how to reproduce the problem. |
I didn't understand what makes this issue happen, I created new project everything works fine that's why I shared repo it contains only few pages |
/disclaimer/ goes to /disclaimer/ |
@rahulkumarsingh73690 how did you solve it? |
@ennioVisco use server side rendering that's it |
Cloudflare Pages route matching is: /contact.html redirected to /contact /about/index.html redirected to /about/ For statically generated sites, use the nitro option `autoSubfolderIndex` to disable auto generated subfolder. defineNuxtConfig({ nitro: { prerender: { autoSubfolderIndex: false } }) more discussion about this, refer to nuxt/nuxt#22254 (comment)
* docs(deploy): add Cloudflare Pages route matching Cloudflare Pages route matching is: /contact.html redirected to /contact /about/index.html redirected to /about/ For statically generated sites, use the nitro option `autoSubfolderIndex` to disable auto generated subfolder. defineNuxtConfig({ nitro: { prerender: { autoSubfolderIndex: false } }) more discussion about this, refer to nuxt/nuxt#22254 (comment) * Update content/3.deploy/cloudflare.md * Update content/3.deploy/cloudflare.md --------- Co-authored-by: Sébastien Chopin <[email protected]>
Environment
Reproduction
Not now
Describe the bug
After updating to nuxt 3 3.6.5 from 3.5.* trailingSlash removed. Is there any way to enable this feature because for SEO this is bad
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: