[User Warning] Already directed to https://dev.competenz.org.nz/Security/login?BackURL=%2Fschools%2Fresources%2Fresources%2F; now trying to direct to /schools/resources/

GET /schools/resources/resources/

Line 638 in /var/www/vhosts/competenz.org.nz/dev.competenz.org.nz/vendor/silverstripe/framework/src/Control/Controller.php

Source

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     }

Trace

GET /schools/resources/resources/

[User Warning] Already directed to https://dev.competenz.org.nz/Security/login?BackURL=%2Fschools%2Fresources%2Fresources%2F; now trying to direct to /schools/resources/

GET /schools/resources/resources/

Line 638 in /var/www/vhosts/competenz.org.nz/dev.competenz.org.nz/vendor/silverstripe/framework/src/Control/Controller.php

Source

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     }

Trace