Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-07-19 16:12:33 +0300
committerFatih Acet <acetfatih@gmail.com>2016-07-19 16:12:33 +0300
commite57c0c89f082e98f0fa0f3bd5ab0778c7304c41e (patch)
tree8c41ab5b5b62dfb6eb209c0c32bdba442fafc892 /app/views/projects
parent61e7453e0465ceb631d3e8445429cfed7c1449d3 (diff)
parentc7fcd061f52c4502af906dcde219f704322f7efe (diff)
Merge branch 'note-form-login-link-referer' into 'master'
Added redirect_to_referer to login link on issues ## What does this MR do? Adds a `redirect_to_referer` param to login & register links on issues when not logged in. This makes the login box redirect back to the issue after login. ## What are the relevant issue numbers? Closes #19968 See merge request !5344
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