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
This commit is contained in:
Jean-Philippe Lang 2012-05-13 08:33:55 +00:00
parent 46e48ad3f7
commit 7c97832002
1 changed files with 1 additions and 1 deletions

View File

@ -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