/** * Sets the jumpurl for page type "External URL" * * @return void */ public function setExternalJumpUrl() { if ($extUrl = $this->sys_page->getExtURL($this->page, $this->config['config']['disablePageExternalUrl'])) { $this->jumpurl = $extUrl; GeneralUtility::_GETset(GeneralUtility::hmac($this->jumpurl, 'jumpurl'), 'juHash'); } }
/** * Sets the jumpurl for page type "External URL" * * @return void * @todo Define visibility */ public function setExternalJumpUrl() { if ($extUrl = $this->sys_page->getExtURL($this->page, $this->config['config']['disablePageExternalUrl'])) { $this->jumpurl = $extUrl; } }
/** * @test */ public function getExtUrlForDokType3AndUrlType0PrependsSiteUrl() { $this->assertEquals(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . 'hello/world/', $this->pageSelectObject->getExtURL(array('doktype' => \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK, 'urltype' => 0, 'url' => 'hello/world/'))); }