Skip to content
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

documentDriven prerender - crawler not working if link has query parameters #2910

Open
gitFoxCode opened this issue Dec 12, 2024 · 1 comment

Comments

@gitFoxCode
Copy link

Environment



Reproduction

  1. npx nuxi@latest init content-app -t content
  2. Remove /pages and set documentDriven to true
  3. Create something like content/test/tester.md
  4. Link it in index.md:
Look at the [Content documentation](https://content.nuxtjs.org/) to learn more. [TEST](/test/tester?tab=yex)
  1. npm run generate
  2. npm run preview
  3. Go to /
  4. Click TEST link
  5. Everything is working
  6. Refresh
  7. Document not found

Describe the bug

During nuxt generate, with prerender: { routes: [ "/"] } the Nuxt crawler works by scanning the homepage and prerendering every page it finds through links. However, if we have a link like <a href="/test?tab=xyz">xyz</a>, it is not prerendered as a separate test/index.html.

Additional context

No response

Logs

Copy link
Member

This is not related to content module, it is the behaviour of Nuxt Crawler. Routes with query params will not be written on the disk.

Feel free to open an issue in upstream repo and seek for possible solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants