Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 03:07:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 03:07:21 +0300
commitb53b2fbb6b393f28211fa2c2c5bdb519b6e7bc08 (patch)
treeacde0976d5e2d1df33b922ad3afdeb8fc7db9198 /app/models/pages
parent213f46f188c29e9c442df61530110e172a7e819e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/pages')
-rw-r--r--app/models/pages/lookup_path.rb2
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) + '/'