[TYPO3-english] RealUrl and TypoLink

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Jul 21 22:39:13 CEST 2016


Hi,

On 20/07/2016 17:06, Sinisa Mitrovic wrote:
>     'preVars' => array(
>         array(
>             'GETvar' => 'no_cache',
>             'valueMap' => array(
>                 'no_cache' => 1,
>             ),
>             'noMatch' => 'bypass',
>         ),
>         array(
>             'GETvar' => 'L',
>             'valueMap' => array(
>                 'dk' => '1',
>                 'danish' => '1',
>                 'uk' => '2',
>                 'english' => '2',
>             ),
>             'noMatch' => 'bypass',
>         ),
>     ),
>
> And explanation about generated link:
> danish/123/print.html
>
> Is it possible to tell / force typolink to generate link with first
> value like:
> dk/123/print.html

You have two values mapped to 1 and two mapped to 2. Why not remove the 
lines with 'danish' and 'english'?

It might not be possible to remove one of the two in your situation; I'm 
not sure about the internals of RealUrl here, but it could be worth a 
try to swap the lines with 'dk' and 'danish'.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list