Preserve query and hash params when redirecting

Hi,
I noticed that if I type url http://mysite.com/docs?p=abc, hugo redirects me to http://mysite.com/docs/. This also happens for # params. Is there a way to preserve the query & hash params when this redirection happens?

Thanks.

What redirect are you talking about?

For example, https://appscode.info/docs -> https://appscode.info/docs/

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 https://firebase.google.com/docs/hosting/ . 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.