Line 602 in /var/www/vhosts/bm-la.de/httpdocs/vendor/silverstripe/framework/src/Control/Controller.php
593 } 594 595 /** 596 * Redirect to the given URL. 597 */ 598 public function redirect(string $url, int $code = 302): HTTPResponse 599 { 600 $response = $this->getResponse(); 601 if ($response->getHeader('Location') && $response->getHeader('Location') != $url) { 602 user_error("Already directed to " . $this->getResponse()->getHeader('Location') 603 . "; now trying to direct to $url", E_USER_WARNING); 604 return $response; 605 } 606 $response = parent::redirect($url, $code); 607 $this->setResponse($response); 608 return $response;