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:
authorPhil Hughes <me@iamphill.com>2017-09-27 18:22:12 +0300
committerPhil Hughes <me@iamphill.com>2017-09-27 19:06:24 +0300
commit05844d8b471b98c6b3251006aebfc78b97d88ac6 (patch)
tree1995c5b93710725dba9fd9d882aaaa239334cfa6 /app/helpers
parentaaf435d16435bf3fbcfc2ab80071485ddb6bcf01 (diff)
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')
-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)