Skip to content

Commit e054124

Browse files
Use request.fullpath for toggle back_url to preserve current page with query parameters, enables SAML sudo_mode support
1 parent 9d811cb commit e054124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_sudo/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Helpers
55
def toggle_link_info
66
admin = User.current.admin?
77

8-
{ url: toggle_sudo_path(back_url: url_for(request.params)),
8+
{ url: toggle_sudo_path(back_url: request.fullpath),
99
title: admin ? l(:label_drop_admin_permission) : l(:label_become_admin),
1010
css: admin ? 'sudo-admin' : 'sudo-user',
1111
icon: admin ? 'fas_angle-double-down' : 'fas_angle-double-up' }

0 commit comments

Comments
 (0)