-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Proxito: fix https and canonical redirects #8193
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
Conversation
When doing a https redirect we were adding the default language and version (/en/latest/) if the current url didn't have those components. And similar when doing a redirect to a canonical domain. Fix #8183
0b5deb2
to
810abd3
Compare
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.
I don't quite understand the issue. What's wrong with adding the full URL when redirecting users?
Edit: Oh, I looked at the linked issue more closely. Makes sense.
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 makes sense, though adds another redirect for a lot of URL's :/
@@ -0,0 +1,3 @@ | |||
REDIRECT_HTTPS = 'https' | |||
REDIRECT_CANONICAL_CNAME = 'canonical-cname' | |||
REDIRECT_SUBPROJECT_MAIN_DOMAIN = 'subproject-main-domain' |
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 is based on #8187, so I need a review on that one first. |
When doing a https redirect we were adding the default language and
version (/en/latest/) if the current url didn't have those components.
And similar when doing a redirect to a canonical domain.
Fix #8183
This is based on #8187 since we need to distinguish between redirects to subprojects and canonical redirects.