[BUGFIX] Allow to resolve sites without trailing slash as base 92/58092/2
authorBenni Mack <benni@typo3.org>
Thu, 30 Aug 2018 16:38:44 +0000 (18:38 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 30 Aug 2018 17:02:43 +0000 (19:02 +0200)
commitf6f4b03ea6d13378f695785f778fe8011692f395
tree217b2174ea8a95000ea6c2f948325d2d266eb473
parentd7ea9a755bed86e48bbc24f02f8bd64318dc330e
[BUGFIX] Allow to resolve sites without trailing slash as base

When a site (language) has "/en" as base, then the page router
does not kick in, as the PageRouter receives a "/" at the very beginning
of the $routePathTail, which needs to be removed.

Resolves: #86044
Releases: master
Change-Id: I770911bc1157cfb8a217b5e16dc303859f63cedd
Reviewed-on: https://review.typo3.org/58092
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Daniel Sattler <sattler@b13.de>
Tested-by: Daniel Sattler <sattler@b13.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Routing/PageRouter.php
typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php [new file with mode: 0644]