Bug #102476
closedSiteconfig settings.redirects.httpStatusCode not working. Mistake in SlugService.php
100%
Description
Hello,
in TYPO3\CMS\Redirects\Service\SlugService is a mistake.
Wrong:
Line 142: $this->httpStatusCode = (int)$settings->get('httpStatusCode', 307);
Correct:
Line 142: $this->httpStatusCode = (int)$settings->get('redirects.httpStatusCode', 307);
Otherwise Siteconfig:
settings:
redirects:
httpStatusCode: 301
is not working.
See: https://docs.typo3.org/c/typo3/cms-redirects/main/en-us/Setup/Index.html
TYPO3 11 and below is working correctly.
For the moment you can use this config:
settings:
httpStatusCode: 301
Regards,
Markus
Updated by Markus A almost 1 year ago
Updated by Stefan Bürk almost 1 year ago
- Related to Feature #99048: Site Settings PHP API added
Updated by Gerrit Code Review almost 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81923
Updated by Gerrit Code Review almost 1 year ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81890
Updated by Gerrit Code Review almost 1 year ago
Patch set 3 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81890
Updated by Markus A almost 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 163db636a661b61705a3052ec5bd22ef74fe5b68.