Bug #73148
closedWrong HTTP redirect statuscode for shortcut to selected page
0%
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.