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

tags is not working with Vietnamese characters #1042

Open
haingdc opened this issue Oct 22, 2024 · 4 comments
Open

tags is not working with Vietnamese characters #1042

haingdc opened this issue Oct 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@haingdc
Copy link

haingdc commented Oct 22, 2024

Describe the bug
Open the tags routes which are Vietnamese words fall into 404 page

To Reproduce
Steps to reproduce the behavior:

  1. Create an blog post in data folder such as data/blog/test.mdx
  2. Add tags for example: tags: ['hành trình']
  3. Build and deploy nextjs
  4. Go to the site: http://personal-site-example.com/tags/hành-trình
  5. It displays 404 page

Expected behavior
It is expected to allow Vietname tags

Reason: because support Chinese by encodeURL that I found in commit before

@haingdc haingdc added the bug Something isn't working label Oct 22, 2024
@timlrx
Copy link
Owner

timlrx commented Nov 3, 2024

I tried with the example and it works for me

@haingdc
Copy link
Author

haingdc commented Nov 5, 2024

It isn't in my side. Before It happened from forked source. Now I verify from this source and make sure that it doesn't work.
So weird that It'll fine if you build and serve in localhost.
The issue raises when it's deployed to Github pages. The same steps that I described above

@buzuosheng
Copy link

Me too, is there no solution still?

@echeveria
Copy link

echeveria commented Nov 19, 2024

I have the same issue with cyrillic, localhost work, but on firebase not. May be:
const paths = tagKeys.map((tag) => ({
tag: decodeURI(tag),
}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants