Fix pages unique domain redirect
What does this MR do and why?
Describe in detail what your merge request does and why.
Fix pages unique domain redirect
For root domain urls, like namespace.gitlab.io
, the unique pages
redirect was not working.
The root cause was that the prefix
(https://gitlab.com/gitlab-org/gitlab/blob/master/app/models/pages/lookup_path.rb#L48) was wrongly built for unique domain
enabled projects since the Project#pages_url
was returning the unique
domain url, making its comparison with the root domain url never match.
Related to: gitlab-pages#1058 (closed) Changelog: fixed
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.