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
Can filename contain "()" and "$" ? #5737
Comments
Have you tried renaming the file? |
thanks @bep |
Sure, but I'm pretty sure |
@bep I run |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
I ran into a similar problem when some of my markdown files have the : character embedded in their name, and when they were converted to HTML by Hugo, the : characters were dropped and the resulting filename wasn't what we were expecting. Eventually, I traced this to path.go where the filenames are sanitized, and issue 1292 (where the % characters are stripped out of filenames) also seems relevant. I understand the reasoning for not allowing certain characters in filenames because they are not permitted in the URL specs, and that doing the percent-encoding may not be within the scope of Hugo (plus, certain cloud storage providers do their own encoding on upload, which can further complicate matters). However, I didn't see any mention in the documentation regarding which characters are permitted to be used in filenames, and which ones will be dropped; nor does the documentation indicate that these characters will be dropped silently, even when running Hugo in verbose mode. @bep - I am happy to add this information into the documentation, but would appreciate a pointer to a suitable location to do so. If the information is already there, could it be made more obvious? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi all,
I have one file named "$().md", I access "http://localhost:1313/$()/" or "http://localhost:1313/%24()/" both returns 404 code. I have no idea about this. What should I do?
here is $().md file content
The text was updated successfully, but these errors were encountered: