summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-10-17 07:19:04 -0700
committerStan Hu <stanhu@gmail.com>2015-10-17 07:19:04 -0700
commit5f47b61cef9c110c09eab57a9e5f8f32654f21bd (patch)
tree85567373d658342f955c18a7001ec74bb3c75a4f /app/views/projects/buttons
parentc856a7a5934fba13598be09507c2090888f57a39 (diff)
downloadgitlab-ce-5f47b61cef9c110c09eab57a9e5f8f32654f21bd.tar.gz
Use a relative link instead of full URL with New Issue button to be consistent
Relates to #3095
Diffstat (limited to 'app/views/projects/buttons')
-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 4580c912692..fa8c2c599a7 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)