Be more explicit with the impersonate return URL
This commit is contained in:
parent
daca985a6e
commit
ec754d2213
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Admin::ImpersonationController < Admin::ApplicationController
|
|||
redirect_to admin_user_path(@user)
|
||||
else
|
||||
session[:impersonator_id] = current_user.username
|
||||
session[:impersonator_return_to] = request.env['HTTP_REFERER']
|
||||
session[:impersonator_return_to] = admin_user_path(@user)
|
||||
|
||||
warden.set_user(user, scope: 'user')
|
||||
|
||||
|
|
Loading…
Reference in a new issue