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

Fix url jump error, add Chinese support. 修复url跳转,支持中文 #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Charles94jp
Copy link

@Charles94jp Charles94jp commented Oct 14, 2022

Adaptation: Hugo's url will handle spaces and symbols.
The content of the article supports Chinese.
url处理空格和标点符号,修复在文章中跳转另一个文章时url拼接错误
文章content支持中文(基本汉字)

URL Jump Bug

For example I created a post with the command hugo new "posts/Hello World.md"

My browser's current url is https://blog.example.com/. When I search for "hello world", there is an article called "Hello World" in the search results. When I click on it, it jumps to https://blog.example.com/posts/Hello%20World, the result is 404. Because the actual address of this post is https://blog.example.com/posts/hello-world.

Another bug is that when my current url is https://blog.example.com/posts/hello-world. When I search and jump to another post called "test", my url becomes https://blog.example.com/posts/hello-world/posts/test instead of https://blog.example.com/posts/test.

Adaptation: hugo's url will handle spaces and symbols
The content of the article supports Chinese
url处理空格和标点符号,修复在文章中跳转另一个文章时url拼接错误
文章content支持中文(基本汉字)
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

Successfully merging this pull request may close these issues.

None yet

1 participant