Preserve query and hash params when redirecting

I noticed that if I type url, hugo redirects me to This also happens for # params. Is there a way to preserve the query & hash params when this redirection happens?


What redirect are you talking about?

For example, ->

OK, so you mean the Hugo development server? If so, there are no way to modify how it handles URLs.

But I’m still confused, as the server works fine with hash parameters for me (just follow the TOC links in the Hugo docs for one example)

We host on . Can you please confirm that this is not related to how hugo generated pages.

Hugo generates STATIC pages, the only redirects we do is via the alias pages, but you haven’t said anything about aliases.

We don’t have alias pages.

It’s your web server, not Hugo.