app/controllers/workarea/admin/impersonations_controller.rb in workarea-admin-3.5.19 vs app/controllers/workarea/admin/impersonations_controller.rb in workarea-admin-3.5.20
- old
+ new
@@ -25,10 +25,10 @@
previous_user_id = session[:user_id]
stop_impersonation
clear_current_order
flash[:success] = t('workarea.admin.users.flash_messages.stopped')
- redirect_to user_path(previous_user_id)
+ redirect_back_or(user_path(previous_user_id))
end
end
end
end