#97948Configurable status code for SiteBaseRedirect
Description
In TYPO3 11.5. when “https://www.example.com” was entered, but all sites have “https://www.example.com/lang-key/”, a redirect to the first possible language is done.
The status code responded is a hardcoded 307 “temporary redirect”, but in my opinion, in the situation mentioned above, the status code 301 “permanent redirect” would be more appropriate.
The hard coded status code in /typo3/sysext/frontend/Classes/Middleware/SiteBaseRedirectResolver.php should be configurable in the site configuration.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.