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

The "#" character is not supported in file names, which may result in the path not being found. #5428

Open
2 tasks done
ihuadz opened this issue Feb 23, 2024 · 5 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@ihuadz
Copy link

ihuadz commented Feb 23, 2024

Check List

  • I have already searched existing issues.
  • I have already read Docs page.

Feature Request

I hope the issue with file names containing special characters like "#" can be fixed. When writing articles about C#, I encounter this problem. Although I can use "CSharp" as a substitute, I hope this can make the product better and better.

Others

No response

@uiolee
Copy link
Member

uiolee commented Mar 30, 2024

#

hexo normally generates files with # in the file name. # will be treated by the browser as an anchor instead of a path. This is not caused by hexo.

@ihuadz
Copy link
Author

ihuadz commented Mar 30, 2024

#

hexo normally generates files with # in the file name. # will be treated by the browser as an anchor instead of a path. This is not caused by hexo.

I see what you mean, I'm wondering if this can be solved by url encoding when generating file names that contain special characters ^-^

@uiolee
Copy link
Member

uiolee commented Mar 30, 2024

# is a legal character in URL. Neither url api nor encodeurl() escape it

@uiolee
Copy link
Member

uiolee commented Mar 30, 2024

For individual post, you can define permalink in Front-matter

@uiolee uiolee added the enhancement New feature or request label Mar 30, 2024
@ihuadz
Copy link
Author

ihuadz commented Mar 30, 2024

For individual post, you can define permalink in Front-matter

Understood, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants