summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-10-06 10:15:55 +0000
committerRémy Coutable <remy@rymai.me>2017-10-06 10:15:55 +0000
commitd8650271083a10e51d9d8bc6f4af8cfa373e6efc (patch)
tree6da95591fffc7c44a961a8dd8fdd3f3db194f455
parenta9d15be587e897b4e9dfa8c271d681c018b3819a (diff)
parent1428f38dd62834f90c2ed3dae17aa673d0585e64 (diff)
downloadgitlab-ce-d8650271083a10e51d9d8bc6f4af8cfa373e6efc.tar.gz
Merge branch '38696-fix-project-snippets-breadcrumb-link' into 'master'
Fix project snippets breadcrumb link Closes #38696 See merge request gitlab-org/gitlab-ce!14646
-rw-r--r--app/views/projects/snippets/show.html.haml2
-rw-r--r--changelogs/unreleased/38696-fix-project-snippets-breadcrumb-link.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml
index fda068f08c2..7062c5b765e 100644
--- a/app/views/projects/snippets/show.html.haml
+++ b/app/views/projects/snippets/show.html.haml
@@ -1,5 +1,5 @@
- @content_class = "limit-container-width limited-inner-width-container" unless fluid_layout
-- add_to_breadcrumbs "Snippets", dashboard_snippets_path
+- add_to_breadcrumbs "Snippets", project_snippets_path(@project)
- breadcrumb_title @snippet.to_reference
- page_title "#{@snippet.title} (#{@snippet.to_reference})", "Snippets"
diff --git a/changelogs/unreleased/38696-fix-project-snippets-breadcrumb-link.yml b/changelogs/unreleased/38696-fix-project-snippets-breadcrumb-link.yml
new file mode 100644
index 00000000000..18b1645d7a9
--- /dev/null
+++ b/changelogs/unreleased/38696-fix-project-snippets-breadcrumb-link.yml
@@ -0,0 +1,5 @@
+---
+title: Fix project snippets breadcrumb link
+merge_request:
+author:
+type: fixed