Project

General

Profile

Actions

Bug #73148

closed

Wrong HTTP redirect statuscode for shortcut to selected page

Added by Dan Kleine (Untenzu) almost 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-02-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If an editor uses the shortcut feature for pages, then TYPO3 redirects to the desired target page. The HTTP statuscode for the redirect is »307«. SEO guys complained to me, that this status code is wrong, when redirecting to explicitly selected pages.

I remembered that this redirect used 301 in the past and and after a quick search I found the reason for this change in ticket #56423. In this ticket the author criticizes that the redirect used »301« for all redirects except random subpages. The discussion correctly pointed out, that shortcuts to rather random pages (like „First Subpage“ or „Random Page“) are dynamic and subject to change, and therefore should use 307 as statuscode.

Instead of switching the condition for type of the shortcut the applied solution was to remove the condition completely and now use »307« for all redirects.

As stated above this is wrong. When the editor sets a shortcut to an explicitly selected page, then TYPO3 should use 301 as statuscode. If the editor uses one of the three other shortcut types currently possible, then statuscode 307 should be used.

I would like to send a patch to fix the previously applied patch of ticket 56423. The bug was introduced in 6.2 and now exists in all supported TYPO3 Versions.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #56423: Page shortcuts redirect with HTTP Status 301 and get cached on some devicesClosed2014-02-28

Actions
Related to TYPO3 Core - Feature #73139: Allow to select redirect code for doktype shortcutRejected2016-02-05

Actions
Related to TYPO3 Core - Feature #69330: As a editor of a site i would like to influence the http response status code of redirect that is used for a page of pagetype shortcut because then i have more control over a SEO paramenterClosed2015-08-26

Actions
Actions

Also available in: Atom PDF