Bug #64437
closedPages with type "external link" don't redirect if requested via google search result
0%
Description
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: referer
and max-age
.
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.
Files
Updated by Jost Baron almost 10 years ago
How do I edit my issue? Forgot to use the preview...
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.2 (Frontend)
Hi Jost,
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.
Updated by Jost Baron almost 10 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.
Updated by Samuel Talleux over 9 years ago
Hello,
i'd like to know if this will be considered as a bug, what i think, and if it will be fixed.
Thanks,
Samuel
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Benni Mack over 9 years ago
- Status changed from New to Resolved
This should be fixed in the next version!
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed