summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-19 13:27:11 +0100
committerPhil Hughes <me@iamphill.com>2016-07-19 13:27:11 +0100
commitd705537634e1bd94fb24108a8a35da0a0441a0ef (patch)
tree31b883bc32457c4beda5861013971f7f6ee941fb /app/views/projects
parent1cd573ee7f03bcb356478aab5900fae4618b53ec (diff)
downloadgitlab-ce-d705537634e1bd94fb24108a8a35da0a0441a0ef.tar.gz
Added redirect_to_referer to login link on issues
Closes #19968
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/notes/_notes_with_form.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/notes/_notes_with_form.html.haml b/app/views/projects/notes/_notes_with_form.html.haml
index 56d302fab82..74538a9723e 100644
--- a/app/views/projects/notes/_notes_with_form.html.haml
+++ b/app/views/projects/notes/_notes_with_form.html.haml
@@ -14,9 +14,9 @@
.disabled-comment.text-center
.disabled-comment-text.inline
Please
- = link_to "register",new_user_session_path
+ = link_to "register", new_session_path(:user, redirect_to_referer: 'yes')
or
- = link_to "login",new_user_session_path
+ = link_to "login", new_session_path(:user, redirect_to_referer: 'yes')
to post a comment
:javascript