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

path parts with utf-8 not working - returning "Document not found" #2548

Open
acrolink opened this issue Feb 7, 2024 · 1 comment
Open

Comments

@acrolink
Copy link

acrolink commented Feb 7, 2024

Environment

Nuxt project info: 7:07:34 PM


  • Operating System: Linux
  • Node Version: v20.11.0
  • Nuxt Version: 3.10.1
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: pnpm@8.12.1
  • Builder: -
  • User Config: devtools, modules, css, plugins, build, app
  • Runtime Modules: @nuxtjs/tailwindcss@6.11.3, @nuxtjs/google-fonts@3.1.3, @nuxt/content@2.12.0
  • Build Modules: -

Reproduction

./pages/products/[...slugCategory]/[...slugProduct].vue

./content/products/books/موسوعه.json

Describe the bug

accessing the URL at:

/products/books/موسوعه

returns:
Document not found, overwrite this content with #not-found slot in <ContentDoc>.

However if the json file path name is ./content/products/books/my-life.json then the url is working fine when accessing: /products/books/my-life

Additional context

No response

Logs

No response

@nobkd
Copy link
Contributor

nobkd commented Feb 7, 2024

You can try setting _path key with your real file path to override slugify changing your path.

See related comments:

I don't know if it works just the same for JSON files, but it's worth the try.


I think, the slugify behavior should be mentioned (better) in the docs, as multiple issues/discussions asked about this already.

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