[TYPO3-english] getTypoLink_URL generates wrong URL after language change

bernd wilke t3ng at bernd-wilke.net
Wed Nov 19 10:17:24 CET 2014


Am 19.11.14 10:02, schrieb Urs B.:
> This was very odd... but, I found a solution.
>
> Instead of using `$cObj->getTypoLink_URL($linkValue);` I'm using this:
>
>     $configurations['additionalParams'] = "&L=".(int)t3lib_div::_GP('L');
>     $configurations['returnLast'] = 'url'; // get it as URL
>     $configurations['parameter'] =  $linkValue;
>     $href = $cObject->typolink(NULL, $configurations);
> It seems that when I created the $cObj, the L-Parameter got lost
> somewhere, somewhen. By adding it manually, the Link works as expected.

did you configure L to be kept?

config.linkVars := addToList(L)
config.uniqueLinkVars = 1

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list