Skip to content
代码片段 群组 项目
提交 07581910 编辑于 作者: Kassio Borges's avatar Kassio Borges 提交者: Michael Kozono
浏览文件

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` 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.

To fix that, the `Project#pages_url` now accepts a argument to force the
unique domain, keeping the original behavior on most places and only
returning the unique url when it's needed.

Related to: https://gitlab.com/gitlab-org/gitlab-pages/-/issues/1058
Changelog: fixed
上级 4e9df1e7
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册