Skip to content
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

Redirects with images don't seem to work #157

Closed
josham opened this issue Jun 5, 2023 · 1 comment
Closed

Redirects with images don't seem to work #157

josham opened this issue Jun 5, 2023 · 1 comment

Comments

@josham
Copy link

josham commented Jun 5, 2023

Summary

If I clone this repo https://github.com/squidfunk/mkdocs-material-example-versioning and deploy:

mike deploy --update-aliases 0.1 latest
mike set-default latest
mike serve

The redirects seem to work with pages but not images, e.g.

Visiting http://localhost:8000/latest/bar/ redirects to http://localhost:8000/0.1/bar/. However, visiting http://localhost:8000/0.1/assets/images/favicon.png works but http://localhost:8000/latest/assets/images/favicon.png gives 404:

image

@jimporter
Copy link
Owner

That would probably work on the latest dev build if you use symlinks for aliases (which will become the default in 2.0), but for redirect-style aliases (the default in 1.x), this is unsupported.

However, it's not clear to me what version of mike you're using. In the future, please fill out all of the entries you can in the bug reporting template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants