From b8a539afe9faf52ecaca1b7ad06eacdebcefa88d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 9 Oct 2019 10:53:57 +0200 Subject: [PATCH] Controller::redirect_to: url_for nicht doppelt aufrufen, wenn ajax Macht zwar nichts, muss aber auch nicht. --- SL/Controller/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index 5847b98b5..8b02ce0d4 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -54,7 +54,7 @@ sub redirect_to { SL::Helper::Flash::delay_flash(); } - return $self->render(SL::ClientJS->new->redirect_to($self->url_for(@_))) if $::request->is_ajax; + return $self->render(SL::ClientJS->new->redirect_to($url)) if $::request->is_ajax; print $::request->{cgi}->redirect($url); } -- 2.20.1