Fix Pages Namespace homepage no longer working with UpperCased namespaces

What does this MR do and why?

This MR fixes an issue introduced by !165922 (merged) where an Uppercased namespace would prevent namespace homepages (projects with group.pages.io) from working.

References

How to set up and validate locally

  1. Set up your GDK to support runners and pages. Note the pages domain you're using
  2. Create a group or user with a group or username containing capitals (e.g. MyGroupName)
  3. create a new pages project (eg. by using the Pages/Plain HTML template). Name it <NAMESPACE_NAME>.<PAGES_DOMAIN_FROM_CONFIG>, eg. mygroupname.pages.gdk.test
  4. Run the pipeline at least once.
  5. Visit http://mygroupname.pages.gdk.test:3000 and confirm the page is deployed there.

Related to #508681 (closed)

Merge request reports

Loading