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);
    }