From: Jean-Philippe Lang Date: Sun, 13 May 2012 08:33:55 +0000 (+0000) Subject: Redirect to referer when deleting a user (#10865). X-Git-Tag: 2.0.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c9783200286740bc9e9ac3d3c227e0b26ccdb17;p=redmine.git Redirect to referer when deleting a user (#10865). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9678 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3b42e7e54..ae7b047df 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -174,7 +174,7 @@ class UsersController < ApplicationController def destroy @user.destroy respond_to do |format| - format.html { redirect_to(users_url) } + format.html { redirect_to_referer_or(users_url) } format.api { head :ok } end end