From 7c9783200286740bc9e9ac3d3c227e0b26ccdb17 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 May 2012 08:33:55 +0000 Subject: [PATCH] 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 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5