Project

General

Profile

Actions

Feature #96615

closed

Use symfony default placeholder {_locale} to resolve page path

Added by Stefan Froemken over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2022-01-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.4
Tags:
Complexity:
hard
Sprint Focus:
On Location Sprint

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

Actions

Also available in: Atom PDF