Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Wrong Path in Multilanguage / Multienviroment Setup

Open ghost opened this issue 8 years ago • 2 comments

When i use a Multilanguage / Multienviroment Setup like this:

return array(

    '*' => array(

        'devMode' => false,
        'limitAutoSlugsToAscii' => true,
        'convertFilenamesToAscii' => true,
        'enableTemplateCaching' => false,

        'defaultSearchTermOptions' => array(
            'subLeft' => true,
            'subRight' => true,
        ),

    ),

    'delico.tkftest.ch' => array(

        'siteUrl' => array(
            'de' => 'http://delico.tkftest.ch/',
            'fr' => 'http://delico.tkftest.ch/fr/',
            'en' => 'http://delico.tkftest.ch/en/',
        ),

    ),

   'delico.staging.tkftest.ch' => array(

        'siteUrl' => array(
            'de' => 'http://delico.staging.tkftest.ch/',
            'fr' => 'http://delico.staging.tkftest.ch/fr/',
            'en' => 'http://delico.staging.tkftest.ch/en/',
        ),
    ),
);

Compressor try's to find the file at the corresponding Url not the absolute Path eg:

In French : http://delico.staging.tkftest.ch/fr/assetpath

ghost avatar Aug 17 '16 14:08 ghost

I have the same problem. A config option to switch to absolute urls, excluding the siteUrl would be great.

harryfk avatar Dec 22 '16 16:12 harryfk

Not working on domain-based multilingual site either.

juliencharette avatar May 12 '17 17:05 juliencharette