Pages with type "external link" don't redirect if requested via google search result
On one of my sites, the URL
/support.html should redirect to an external URL.
This works fine when the URL is manually entered or clicked in a menu.
However, when the same URL is opened from a google search result, it no redirect occurs. Instead, the page is shown as if it was a normal page.
I've logged the HTTP headers for both requests (also attached as screenshots), and there seems to be little difference:
1. The "bad" request has two additional headers:
2. For the "bad" request, cache control headers are added, these are not returned for the "good" request.
I can't find the logic where the redirecting between the page types is done in the core. If someone points me to the place, I'll take a look.
#2 Updated by Mathias Schreiber about 5 years ago
- Target version set to 7.2 (Frontend)
I'm not entirely sure if you can edit your issue.
Normally you click the "Update" link and then need to scroll up to see the little link next to "Description".
If that should not work, just tell me in the comments - I'll update the original issue, then.
#3 Updated by Jost Baron about 5 years ago
I don't have that link next to "Description", so apparently can't update the description.
Anyway, I have found the reason for the behavior described above: It's the referer checking mechanism of TYPO3, which can be disabled by setting
SYS/doNotCheckReferer = 1 in the install tool. I still suspect this is a bug, because the check is meant for CSRF-Protection, which probably isn't a problem when redirecting to an external link.