-
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
Fix redirects #247
base: main
Are you sure you want to change the base?
Fix redirects #247
Conversation
redirects.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
/doc?: https://canonical-mir.readthedocs-hosted.com/stable/ | |||
/doc/index.html?: https://canonical-mir.readthedocs-hosted.com/stable/ | |||
/doc/cppguide?: https://canonical-mir.readthedocs-hosted.com/stable/_static/cppguide/ | |||
/doc/cppguide/?: https://canonical-mir.readthedocs-hosted.com/stable/_static/cppguide/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the right change, we still need anyone landing at /doc/cppguide
to redirect, regardless of trailing slash… and anyway it doesn't work…
@Saviq should be working now. Are you able to approve? |
@carkod now the no- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shame this can't be handled by a single line, but OK!
Yes, I think I could try to handle it in a single line with wildcards, but I think it's better to be as explicit as possible, we've had obscure issues on u.com when using wildcards. This way we can also track of changes, which will make it eaier if want to change things in the future or revert it back. |
Done
https://mir-server.io/doc/cppguide/index.html # 404 (actually says 400: Not found in <title>)
https://mir-server.io/doc/getting_involved_in_mir.html # 200
QA
https://mir-server-io-247.demos.haus/doc/cppguide/index.html should not 404 but redirect to https://canonical-mir.readthedocs-hosted.com/stable/_static/cppguide/
https://mir-server-io-247.demos.haus/doc/cppguide/ should redirect to https://canonical-mir.readthedocs-hosted.com/stable/_static/cppguide/
https://mir-server-io-247.demos.haus/doc/getting_involved_in_mir.html should redirect to the new docs site