BigW Consortium Gitlab

Commit e57c0c89 by Fatih Acet

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
parents 61e7453e c7fcd061
......@@ -42,6 +42,7 @@ v 8.10.0 (unreleased)
- Add syntax for multiline blockquote using `>>>` fence !3954
- Fix viewing notification settings when a project is pending deletion
- Updated compare dropdown menus to use GL dropdown
- Redirects back to issue after clicking login link
- Eager load award emoji on notes
- Allow to define manual actions/builds on Pipelines and Environments
- Fix pagination when sorting by columns with lots of ties (like priority)
......
......@@ -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
......
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