You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to redirect to an existing .html file? I previously used the now deprecated redirect: in the .md file to redirect to an .html that was already generated using other software. From what I can tell, this plugin only allows you to specify .md files, which effectively would prevent me from using raw .html redirect.
For example, if I have an .html file called /docs/content/page.html and I want an index.html generated by mkdocs to redirect to it, I previously just put redirect: page.html in /docs/content.md, and I would automatically be redirected to page.html when I navigated to the /docs/content page.
Is there any way to achieve this effect with the mkdocs-redirects plugin?
The text was updated successfully, but these errors were encountered:
Note that one workaround is to place <meta http-equiv="refresh" content="0; URL=page.html" /> inside the .md file for redirection. This solution doesn't require the plugin at all, though I'm still curious if the plugin supports this pattern.
Is there a way to redirect to an existing .html file? I previously used the now deprecated
redirect:
in the .md file to redirect to an .html that was already generated using other software. From what I can tell, this plugin only allows you to specify .md files, which effectively would prevent me from using raw .html redirect.For example, if I have an .html file called /docs/content/page.html and I want an index.html generated by mkdocs to redirect to it, I previously just put
redirect: page.html
in /docs/content.md, and I would automatically be redirected to page.html when I navigated to the /docs/content page.Is there any way to achieve this effect with the mkdocs-redirects plugin?
The text was updated successfully, but these errors were encountered: