Tag "C#" page show 404

If I have a tag named C#, the url is http://localhost:1313/tags/c#/, this url show 404 page.

# sign in url is Special characters. Then I change the # to %23 in address bar. Then it works.

DeepinScreenshot_select-area_20180718150032

My question:

Does Hugo should generate the correct url, if url has Special characters ?

Or, do I need optimize it in my theme ?

Or, Is there any other way to change the tag “C#” link?

Thank you!

Hi @xianmin. Please read Requesting Help.

This is a question that has been discussed often in the forums, so here is a link to get you started:

https://discourse.gohugo.io/search?q=special%20characters%20in%20url

And you are encouraged review the permalinks docs, as well. :slight_smile: