summaryrefslogtreecommitdiff
path: root/app/helpers/breadcrumbs_helper.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-27 16:22:12 +0100
committerPhil Hughes <me@iamphill.com>2017-09-27 17:06:24 +0100
commit05844d8b471b98c6b3251006aebfc78b97d88ac6 (patch)
tree1995c5b93710725dba9fd9d882aaaa239334cfa6 /app/helpers/breadcrumbs_helper.rb
parentaaf435d16435bf3fbcfc2ab80071485ddb6bcf01 (diff)
downloadgitlab-ce-05844d8b471b98c6b3251006aebfc78b97d88ac6.tar.gz
Fixed breadcrumb title not linking
This fixes the breadcrumb titles not having links. This was a regression in the updated breadcrumbs introduced in 10.0. This introduces the link for all pages rather than selectively doing it. This will cover issues, merge requests, pipelines, jobs etc. Closes #38059
Diffstat (limited to 'app/helpers/breadcrumbs_helper.rb')
-rw-r--r--app/helpers/breadcrumbs_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/breadcrumbs_helper.rb b/app/helpers/breadcrumbs_helper.rb
index ee1b7ed083e..87d2a47f6cb 100644
--- a/app/helpers/breadcrumbs_helper.rb
+++ b/app/helpers/breadcrumbs_helper.rb
@@ -10,11 +10,7 @@ module BreadcrumbsHelper
def breadcrumb_title_link
return @breadcrumb_link if @breadcrumb_link
- if controller.available_action?(:index)
- url_for(action: "index")
- else
- request.path
- end
+ request.path
end
def breadcrumb_title(title)