From 18324261097de835628570696594f749e48d3747 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Mon, 1 Oct 2018 10:43:46 +0200 Subject: Link to the tag from a version instead of commit This will result in a 404 when running an unreleased security patch while still allowing users to find the commit when it is made available. --- app/views/help/index.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/views/help') diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index 7a66bac09cb..198c2d35b29 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -7,8 +7,7 @@ GitLab Community Edition - if user_signed_in? - %span= Gitlab::VERSION - %small= link_to Gitlab.revision, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ce', Gitlab.revision) + %span= link_to Gitlab::VERSION, Gitlab::COM_URL + namespace_project_tag_path('gitlab-org', 'gitlab-ce', "v#{Gitlab::VERSION}") = version_status_badge %hr -- cgit v1.2.1