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

Vue-router's 404 error with chinese character in title #344

Closed
Yifei-086 opened this issue May 5, 2018 · 5 comments · Fixed by #473
Closed

Vue-router's 404 error with chinese character in title #344

Yifei-086 opened this issue May 5, 2018 · 5 comments · Fixed by #473
Labels
type: bug Something isn't working

Comments

@Yifei-086
Copy link

The HTML5 History mode works well with full English url.
However, the page will navigate to a Vuepress 404 page with chinese characters in url, if I refresh or enter some page.

I have read docs in Vue-router's HTML5 History mode, and have set a simple catch-all fallback route using nginx.

@ulivz
Copy link
Member

ulivz commented May 5, 2018

Although I can understand this problem, but can you add the content that you just deleted from the issue template ?

@ulivz
Copy link
Member

ulivz commented May 5, 2018

Hmmm... cannot reproduce this:

image

@x8x
Copy link
Contributor

x8x commented May 6, 2018

Maybe related to #307

@Yifei-086
Copy link
Author

Happens here. Take an example, the file structure like this:

.
├── README.md
├── node_modules
├── package.json
├── yarn.lock
└── 试试.md

And README.md goes like this:

# Hello VuePress

+ [试试](/试试.md)

Then run these commands:

$ yarn build
$ cd .vuepress/dist && npx http-server

The server runs on port 8080.

Open http://localhost:8080/ in browser.
Click the 试试 link, url goes to http://localhost:8080/%E8%AF%95%E8%AF%95.html, or http://localhost:8080/试试.html, and markdown page performs perfectly.

Here comes the issue:
Refresh this page, or enter http://localhost:8080/试试.html directly.
Then 404 appears.

Replace Chinese character with English character:
Simply replace '试试' with 'try' in both file name and README.md. Both refresh and enter function quite well.


The issue is related to #307 indeed.

@ulivz
Copy link
Member

ulivz commented May 21, 2018

Fixed at #473

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

Successfully merging a pull request may close this issue.

3 participants