protected function redirectToJumpUrl($jumpUrl)
    {
        $this->validateIfJumpUrlRedirectIsAllowed($jumpUrl);

        $pageTSconfig = $this->getTypoScriptFrontendController()->getPagesTSconfig();
        if (is_array($pageTSconfig['TSFE.'])) {
            $pageTSconfig = $pageTSconfig['TSFE.'];
        } else {
            $pageTSconfig = [];
        }

        // Allow sections in links
        $jumpUrl = str_replace('%23', '#', $jumpUrl);

        $jumpUrl = $this->addParametersToTransferSession($jumpUrl, $pageTSconfig);
        $statusCode = $this->getRedirectStatusCode($pageTSconfig);
        $this->redirect($jumpUrl, $statusCode);
    }
protected function redirectToJumpUrl($jumpUrl)
    {
        $this->validateIfJumpUrlRedirectIsAllowed($jumpUrl);

        $pageTSconfig = $this->getTypoScriptFrontendController()->getPagesTSconfig();
        if (is_array($pageTSconfig['TSFE.'])) {
            $pageTSconfig = $pageTSconfig['TSFE.'];
        } else {
            $pageTSconfig = [];
        }

        // Allow sections in links
        $jumpUrl = str_replace('%23', '#', $jumpUrl);

        $jumpUrl = $this->addParametersToTransferSession($jumpUrl, $pageTSconfig);
        $statusCode = $this->getRedirectStatusCode($pageTSconfig);
        $this->redirect($jumpUrl, $statusCode);
    }
protected function redirectToJumpUrl ( $ jumpUrl ) { $ this -> validateIfJumpUrlRedirectIsAllowed ( $ jumpUrl ) ; $ pageTSconfig = $ this -> getTypoScriptFrontendController ( ) -> getPagesTSconfig ( ) ; if ( is_array ( $ pageTSconfig [ 'TSFE.' ] ) ) { $ pageTSconfig = $ pageTSconfig [ 'TSFE.' ] ; } else { $ pageTSconfig = [ ] ; } // Allow sections in links $ jumpUrl = str_replace ( '%23' , '#' , $ jumpUrl ) ; $ jumpUrl = $ this -> addParametersToTransferSession ( $ jumpUrl , $ pageTSconfig ) ; $ statusCode = $ this -> getRedirectStatusCode ( $ pageTSconfig ) ; $ this -> redirect ( $ jumpUrl , $ statusCode ) ; }
Redirects the user to the given jump URL if all submitted values
are valid

@param string $jumpUrl The URL to which the user should be redirected
@throws \Exception
Redirects the user to the given jump URL if all submitted values are valid