From: Tom Hughes Date: Fri, 6 Aug 2010 08:56:49 +0000 (+0100) Subject: Fix redirect on deleting a trace X-Git-Tag: live~6273^2~31 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/289ab7c19d3fbce8639282ae6c9611374ec43760 Fix redirect on deleting a trace --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 4832910c4..b19e4d8b6 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -206,7 +206,7 @@ class TraceController < ApplicationController trace.visible = false trace.save flash[:notice] = t 'trace.delete.scheduled_for_deletion' - redirect_to :controller => 'traces', :action => 'mine' + redirect_to :action => :mine, :display_name => @user.display_name else render :nothing => true, :status => :bad_request end