diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-12 03:07:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-12 03:07:21 +0300 |
commit | b53b2fbb6b393f28211fa2c2c5bdb519b6e7bc08 (patch) | |
tree | acde0976d5e2d1df33b922ad3afdeb8fc7db9198 /app/models/pages | |
parent | 213f46f188c29e9c442df61530110e172a7e819e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/pages')
-rw-r--r-- | app/models/pages/lookup_path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/pages/lookup_path.rb b/app/models/pages/lookup_path.rb index cf0f0f9e92f..a1ba48f3ab0 100644 --- a/app/models/pages/lookup_path.rb +++ b/app/models/pages/lookup_path.rb @@ -46,7 +46,7 @@ module Pages strong_memoize_attr :source def prefix - if project.pages_group_root? + if project.pages_namespace_url == project.pages_url '/' else project.full_path.delete_prefix(trim_prefix) + '/' |