Commit 23ed732e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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
parents 329a5555 5f47b61c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%ul.dropdown-menu.dropdown-menu-right.project-home-dropdown %ul.dropdown-menu.dropdown-menu-right.project-home-dropdown
- if can?(current_user, :create_issue, @project) - if can?(current_user, :create_issue, @project)
%li %li
= link_to url_for_new_issue do = link_to url_for_new_issue(@project, only_path: true) do
= icon('exclamation-circle fw') = icon('exclamation-circle fw')
New issue New issue
- if can?(current_user, :create_merge_request, @project) - if can?(current_user, :create_merge_request, @project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment