/**
  * 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;
     }
 }
예제 #3
0
 /**
  * @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/')));
 }