Bug #93308 ยป fix-broken-chinese-urls.patch
typo3/cms-core/Classes/Routing/SiteMatcher.php | ||
---|---|---|
// Add the site as entrypoint
|
||
$uri = $site->getBase();
|
||
$route = new Route(
|
||
($uri->getPath() ?: '/') . '{tail}',
|
||
(rawurldecode($uri->getPath()) ?: '/') . '{tail}',
|
||
['site' => $site, 'language' => null, 'tail' => ''],
|
||
array_filter(['tail' => '.*', 'port' => (string)$uri->getPort()]),
|
||
['utf8' => true],
|
||
... | ... | |
foreach ($site->getAllLanguages() as $siteLanguage) {
|
||
$uri = $siteLanguage->getBase();
|
||
$route = new Route(
|
||
($uri->getPath() ?: '/') . '{tail}',
|
||
(rawurldecode($uri->getPath()) ?: '/') . '{tail}',
|
||
['site' => $site, 'language' => $siteLanguage, 'tail' => ''],
|
||
array_filter(['tail' => '.*', 'port' => (string)$uri->getPort()]),
|
||
['utf8' => true],
|