Issue Bug Closed

#102476Siteconfig settings.redirects.httpStatusCode not working. Mistake in SlugService.php

Markus A 11/23/23, 09:38 updated 07/09/24, 15:12

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

Reviews 2