Line 638 in /container/application/public/vendor/silverstripe/framework/src/Control/Controller.php
629 * 630 * @param string $url 631 * @param int $code 632 * @return HTTPResponse 633 */ 634 public function redirect($url, $code = 302) 635 { 636 if ($this->getResponse()->getHeader('Location') && $this->getResponse()->getHeader('Location') != $url) { 637 user_error("Already directed to " . $this->getResponse()->getHeader('Location') 638 . "; now trying to direct to $url", E_USER_WARNING); 639 return null; 640 } 641 $response = parent::redirect($url, $code); 642 $this->setResponse($response); 643 return $response; 644 }