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

Pages with markdown files named in Chinese are not found #5721

Closed
1 task
zepang opened this issue Jan 3, 2023 · 0 comments · Fixed by #5836
Closed
1 task

Pages with markdown files named in Chinese are not found #5721

zepang opened this issue Jan 3, 2023 · 0 comments · Fixed by #5836
Assignees
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@zepang
Copy link

zepang commented Jan 3, 2023

What version of astro are you using?

1.8.0

Are you using an SSR adapter? If so, which one?

@astrojs/node

What package manager are you using?

pnpm

What operating system are you using?

Mac

Describe the Bug

In SSR mode, when I use a markdown file with a Chinese name, for example: 什么场景下选择astro.md, and put the file in the directory pages/blog, the browser opens http://localhost:3000/blog/什么场景下选择astro and tells me that the page cannot be found

image

image

Below is my configuration:

{
  // ...
  output: "server",
  adapter: node({
    mode: 'standalone',
  })
}

I found the reason is because the pathname is not decoded when matching the route on the server side

image

Is there any way to solve this problem?

Link to Minimal Reproducible Example

https://codesandbox.io/s/strange-frost-8jtwmv?file=/package.json

Participation

  • I am willing to submit a pull request for this issue.
@zepang zepang changed the title markdown page can't be found in SSR mode Pages with markdown files named in Chinese are not found Jan 3, 2023
@Princesseuh Princesseuh added the - P4: important Violate documented behavior or significantly impacts performance (priority) label Jan 11, 2023
@natemoo-re natemoo-re self-assigned this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants