We have already returned by now if that flag is set.


David Buchmann <notifications@github.com> a écrit :

>> +    /**
>> +     * {@inheritDoc}
>> +     *
>> +     * automatically prepend the _locale to the pattern
>> +     *
>> +     * @see PageRouteProvider::getCandidates()
>> +     */
>> +    public function getStaticPrefix()
>> +    {
>> +        if (!$this->addLocalePattern) {
>> +            return parent::getStaticPrefix();
>> +        }
>> +
>> +        $prefix = $this->getPrefix();
>> +        $path = substr(parent::getId(), strlen($prefix));
>> +        $path = $prefix.'/{_locale}'.$path;
>
>should this not depend on the addLocalePattern flag?
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/symfony-cmf/SimpleCmsBundle/pull/55/files#r5656391

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.