-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Issue 14989 - Redirect any "v.XX" not including docs to "latest" using a netlify edge function #16378
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
base: master
Are you sure you want to change the base?
Conversation
Hi @sbegin0. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
spot testing: loads
redirects
fails: HTTP 508 is Loop Detected.
|
Have a look at all the things you load when you go to https://istio.io/v1.24/docs/ for example:
While most of these should be the same between releases, we can't currently guarantee that. https://istio.io/latest/en/sitemap.xml lets you infer the paths that are relevant on the site. They are basically:
so instead of saying "only allow /docs/ through" I think it would be best to say "if the URL starts with |
(We also have to account for language codes, currently |
New fails: But does redirect anything with '/' after the version number Still fails: |
Are you blocked on this, or are you debugging it? |
Still debugging, should have another commit later today. |
Created #16404 to address how people will get to these archive pages when we remove the general site archive. |
Both now redirect to https://deploy-preview-16378--preliminary-istio.netlify.app/latest/. Some of my other tests:
Can you explain why the results are different? This suggests a subtle bug? |
Language spot testing:
When on https://deploy-preview-16378--preliminary-istio.netlify.app/v1.24/zh/docs/overview/ if I hit "English" in the footer I end up at (I'm not sure how those footer links work) It feels like we need to build a test suite! |
^ fixed trailing slash issue but redirects between languages still add that second slash. Working on a fix. |
Description
Utilizing netlify edge functions, this is an initial attempt at redirecting old versions to "/latest" (excluding docs).
Reviewers