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

Urs B. brauchli at net-worker.ch
Wed Nov 19 10:02:40 CET 2014


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.


More information about the TYPO3-english mailing list