summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 22:20:35 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 22:20:35 +0000
commit23ed732e39d4e40e9a8643c015fd167b1e654470 (patch)
treeb0ebf9f5dc35a3cc6a95a5f312c46bb0bd86504a
parent329a5555e550fac9946b9145bcea37b54b7dbb9a (diff)
parent5f47b61cef9c110c09eab57a9e5f8f32654f21bd (diff)
downloadgitlab-ce-23ed732e39d4e40e9a8643c015fd167b1e654470.tar.gz
Merge branch 'use-path-for-new-issue-button' into 'master'
Use a relative link instead of full URL with New Issue button to be consistent Relates to #3095 See merge request !1631
-rw-r--r--app/views/projects/buttons/_dropdown.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_dropdown.html.haml b/app/views/projects/buttons/_dropdown.html.haml
index bed2b16249e..18cae8ef6d3 100644
--- a/app/views/projects/buttons/_dropdown.html.haml
+++ b/app/views/projects/buttons/_dropdown.html.haml
@@ -5,7 +5,7 @@
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
- if can?(current_user, :create_issue, @project)
%li
- = link_to url_for_new_issue do
+ = link_to url_for_new_issue(@project, only_path: true) do
= icon('exclamation-circle fw')
New issue
- if can?(current_user, :create_merge_request, @project)