File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
17
17
use Contao \BackendTemplate ;
18
- use Contao \Controller ;
19
18
use Contao \CoreBundle \Exception \NoRootPageFoundException ;
20
19
use Contao \CoreBundle \Exception \PageNotFoundException ;
21
20
use Contao \CoreBundle \Exception \RedirectResponseException ;
@@ -170,7 +169,7 @@ protected function compile()
170
169
$ jumpToCart = PageModel::findPublishedById ($ this ->iso_cart_jumpTo );
171
170
if (null !== $ jumpToCart ) {
172
171
$ jumpToCart ->loadDetails ();
173
- Controller:: redirect ($ jumpToCart ->getFrontendUrl (null , $ jumpToCart ->language ));
172
+ throw new RedirectResponseException ($ jumpToCart ->getFrontendUrl (null , $ jumpToCart ->language ));
174
173
}
175
174
}
176
175
@@ -344,7 +343,7 @@ private function processExternalPaymentMethods()
344
343
345
344
// Order already completed (see isotope/core#1441)
346
345
if ($ isotopeOrder ->checkout_complete ) {
347
- Controller:: redirect (
346
+ throw new RedirectResponseException (
348
347
$ this ->uri ($ this ->klarna_confirmation_page ).'?uid= ' .$ isotopeOrder ->getUniqueId ()
349
348
);
350
349
}
You can’t perform that action at this time.
0 commit comments