Reinstate case sensitivity for Pages URLs

What does this MR do and why?

This MR fixes #513154 (closed), an issue where the lowercase-by-default Pages URL display introduced in !165922 (merged) would cause infinite redirect loops.

It re-introduces case sensitive pages URLs.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

How to set up and validate locally

  1. Make sure you have set up Runners and Pages.
  2. Enable access control for Pages: https://docs.gitlab.com/ee/development/pages/#enabling-access-control
  3. Create a new private Pages project by using the Pages/Plain HTML template. Use a project path containing capitals, but no hyphens -, e.g. (MyHTMLProject, but not My-HTML-Project). Make sure to input the project path manually, because the default behaviour is to generate a slugified version of the project name (lowercased and hyphenated).
  4. Go to the projects "Settings>General", expand "Visibility, project features, permissions" and set "Pages" to "Only Project Members".
  5. Under "Build>Pipelines" Run the project's pipeline manually.
  6. Go to "Deploy>Pages" and uncheck "Use unique domain". Reload the page.
  7. Copy the link shown under "Deployments" and open it in a private window. Make sure it contains the capitalisation used in step 3 as the project path.
  8. In the new window, you should see a login screen. After successful authentication the pages site should be visible.

Related to #513154 (closed)

Edited by Janis Altherr

Merge request reports

Loading
Loading