|
|
@@ -40,7 +40,7 @@ class SiteMatcher extends \TYPO3\CMS\Core\Routing\SiteMatcher
|
|
|
preg_match("/\w+\/(.*)/", $request->getUri()->getPath(), $m);
|
|
|
$tail = $m[1] ?? "";
|
|
|
} else {
|
|
|
- $tail = $request->getUri()->getPath();
|
|
|
+ $tail = rtrim($request->getUri()->getPath(), '/');
|
|
|
}
|
|
|
|
|
|
$language = $site->getDefaultLanguage();
|