#84652Translated page called with L parameter throws exception
Description
Since the application of https://review.typo3.org/#/c/56505 I experience this behavior:
When I access a translated page with &L=1 parameter (the number does not matter) TYPO3 9.2-dev (latest master) throws an exception (I report here only the first lines):
Argument 1 passed to TYPO3\CMS\Core\Site\Entity\Site::getLanguageById() must be of the type integer, string given, called in /TYPO3-dists/typo3_master/typo3/sysext/frontend/Classes/Middleware/SiteResolver.php on line 60
TypeError thrown in file
/TYPO3-dists/typo3_master/typo3/sysext/core/Classes/Site/Entity/Site.php in line 159.
TYPO3\CMS\Core\Site\Entity\Site::getLanguageById("1")
Credits to Markus Klein for finding what causes the error – see his comment on https://review.typo3.org/#/c/56505/56/typo3/sysext/frontend/Classes/Middleware/SiteResolver.php