protected function addParametersToTransferSession($jumpUrl, $pageTSconfig)
    {
        // allow to send the current fe_user with the jump URL
        if (!empty($pageTSconfig['jumpUrl_transferSession'])) {
            $uParts = parse_url($jumpUrl);
            /** @noinspection PhpInternalEntityUsedInspection We need access to the current frontend user ID. */
            $params = '&FE_SESSION_KEY=' .
                rawurlencode(
                    $this->getTypoScriptFrontendController()->fe_user->id . '-' .
                    md5(
                        $this->getTypoScriptFrontendController()->fe_user->id . '/' .
                        $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
                    )
                );
            // Add the session parameter ...
            $jumpUrl .= ($uParts['query'] ? '' : '?') . $params;
        }
        return $jumpUrl;
    }