Project

General

Profile

Actions

Bug #102476

closed

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

Added by Markus A 12 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling & Redirect Handling
Target version:
-
Start date:
2023-11-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #99048: Site Settings PHP APIClosedBenni Mack2022-11-10

Actions
Actions #2

Updated by Stefan Bürk 12 months ago

Actions #3

Updated by Gerrit Code Review 12 months 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

Actions #4

Updated by Gerrit Code Review 12 months 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

Actions #5

Updated by Gerrit Code Review 12 months 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

Actions #6

Updated by Markus A 12 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF