diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-07-19 16:12:33 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-07-19 16:12:33 +0300 |
commit | e57c0c89f082e98f0fa0f3bd5ab0778c7304c41e (patch) | |
tree | 8c41ab5b5b62dfb6eb209c0c32bdba442fafc892 /app/views/projects | |
parent | 61e7453e0465ceb631d3e8445429cfed7c1449d3 (diff) | |
parent | c7fcd061f52c4502af906dcde219f704322f7efe (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.haml | 4 |
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 |