Issue Feature Closed

#96615Use symfony default placeholder {_locale} to resolve page path

Stefan Froemken 01/21/22, 21:12 updated 02/08/23, 16:03

Description

Hello core Team,

currently it is not possible to build URIs like that for translated pages:

https://example.com/de-de.html

That’s because baseUri of language in config.yaml should look like /de-de/. This baseUri is NOT part of Symfony page resolver. This baseUri will always be prefixed to route returned by RouteMatcher. TYPO3 currently only supports resolving of the {tail}-part of the URI. IMO that’s a big problem.

Symfony can resolve languages with its integrated placeholder {_locale}. Symfony can detect suffixes like languages as so called “staticSuffix”. TYPO3 should use this API.

I will try to create a patch for that, but I need help to detect all the different use-cases.

Stefan

Reviews 1