Commit ec754d22 authored by Andrew Tomaka's avatar Andrew Tomaka

Be more explicit with the impersonate return URL

parent daca985a
...@@ -11,7 +11,7 @@ class Admin::ImpersonationController < Admin::ApplicationController ...@@ -11,7 +11,7 @@ class Admin::ImpersonationController < Admin::ApplicationController
redirect_to admin_user_path(@user) redirect_to admin_user_path(@user)
else else
session[:impersonator_id] = current_user.username 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') warden.set_user(user, scope: 'user')
......
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