Project

General

Profile

Actions

Task #104202

open

SiteBaseRedirectResolver Middleware should use 301 for redirects or respect configuration.

Added by Martin R. Krause 5 days ago. Updated 5 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2024-06-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

Middleware implementation `TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver` redirects to the language base path. It does so with a http status 307 which is static in the code. As the base url for each language is pretty fixed for a site, this should be a 301 redirect. Alternatively, the middleware should respect the settings from

`settings.redirects.httpStatusCode`

Actions

Also available in: Atom PDF