Skip to content

Remove Pages redirect for 15.1x

Sarah German requested to merge 1771-15.1x-redirects into main

What does this MR do and why?

We're seeing some odd redirect behavior on URLs that end in 15.1x:

We provide redirects for archived pages via the frontend 404 handler here, but this redirect is actually coming from the webserver/GitLab Pages:

$ curl -I https://docs.gitlab.com/15.11
HTTP/2 301
content-type: text/html; charset=utf-8
location: https://archives.docs.gitlab.com/15.1/1
permissions-policy: interest-cohort=()
vary: Origin
date: Tue, 27 Feb 2024 22:43:28 GMT

It must be something up with the splat rule that this MR removes. This might be a Pages bug? In any case, we can remove the Pages redirect and have our frontend handler take this over.

Closes #1771 (closed)

How to set up and validate locally

Can't test this locally. We'll verify it once it deploys. Hopefully the broken redirects are not cached for too long. 🤞 (Edit: I think 301s like this are cached indefinitely 😞 people will have to clear their browser cache to see the right behavior)

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #1771 (closed)

Edited by Sarah German

Merge request reports