-
Notifications
You must be signed in to change notification settings - Fork 28
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
Preserve query parameters #64
Comments
Hi @feasgal, thanks for the feature request. Would you like to try and send a PR for it? This plugin currently redirects using Javascript: mkdocs-redirects/mkdocs_redirects/plugin.py Lines 17 to 32 in 32ccfd0
You could probably use one of the solution mentioned in https://stackoverflow.com/a/901144/3451029 to preserve query params. |
Hello 👋 ,
You can override the current HTML_TEMPLATE in a similar fashion using a hook before it's implemented here. |
Currently, if these are the redirects:
then a link to
mydomain.com/index.html?q=example
will redirect tomydomain.com/home.html
.I would want it to preserve the query parameters, and redirect to
mydomain.com/home.html?q=example
.The text was updated successfully, but these errors were encountered: