We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the HTML output files are accessed locally (file:// protocol), the redirects don't work.
This is because of the leading slash in the redirect target.
Tested in Firefox and Chrome.
use_directory_urls: false plugins: - redirects: redirect_maps: 'old.md': 'new.md'
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Redirecting...</title> <link rel="canonical" href="/new.html"> <meta name="robots" content="noindex"> <script>var anchor = window.location.hash.substr(1); location.href = "/new.html" + (anchor ? "#" + anchor : "")</script> <meta http-equiv="refresh" content="0; url=/new.html"> </head> <body> Redirecting... </body> </html>
If I manually replace /new.html by new.html, everything works fine, both locally and on the web, and both in Chrome and Firefox.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When the HTML output files are accessed locally (file:// protocol), the redirects don't work.
This is because of the leading slash in the redirect target.
Tested in Firefox and Chrome.
mkdocs.yml
old.html
Solution
If I manually replace /new.html by new.html, everything works fine, both locally and on the web, and both in Chrome and Firefox.
The text was updated successfully, but these errors were encountered: