summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2019-07-09 09:59:55 +0000
committerBob Van Landuyt <bob@gitlab.com>2019-07-09 09:59:55 +0000
commitd90e226dabceed4bdea9550ef8538d11b591e373 (patch)
treefc0a652e78585995a01eed6cfcd858e637649766 /app
parentb286ac3705d4994bee09c2e914627416f16507f2 (diff)
downloadgitlab-ce-d90e226dabceed4bdea9550ef8538d11b591e373.tar.gz
Fix subgroup url in search drop down
Inside a subgroup scope, when the user clicks on the search drop down in the header, some options are displayed. Some of this links direct the user to the issues and merge requests linked to the subgroup. Nevertheless, the url was broken because they doesn't include the complete group namespace
Diffstat (limited to 'app')
-rw-r--r--app/views/layouts/_search.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index 496ec3c78b0..a5f57f5893c 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -1,5 +1,5 @@
- if @group && @group.persisted? && @group.path
- - group_data_attrs = { group_path: j(@group.path), name: @group.name, issues_path: issues_group_path(j(@group.path)), mr_path: merge_requests_group_path(j(@group.path)) }
+ - group_data_attrs = { group_path: j(@group.path), name: j(@group.name), issues_path: issues_group_path(@group), mr_path: merge_requests_group_path(@group) }
- if @project && @project.persisted?
- project_data_attrs = { project_path: j(@project.path), name: j(@project.name), issues_path: project_issues_path(@project), mr_path: project_merge_requests_path(@project), issues_disabled: !@project.issues_enabled? }
.search.search-form{ data: { track_label: "navbar_search", track_event: "activate_form_input" } }