Project

General

Profile

Actions

Bug #64437

closed

Pages with type "external link" don't redirect if requested via google search result

Added by Jost Baron almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-01-22
Due date:
% Done:

0%

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

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

good-request.png (51.7 KB) good-request.png Jost Baron, 2015-01-22 17:13
bad-request.png (65.8 KB) bad-request.png Jost Baron, 2015-01-22 17:13
Actions #1

Updated by Jost Baron almost 10 years ago

How do I edit my issue? Forgot to use the preview...

Actions #2

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.

Actions #3

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.

Actions #4

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

Actions #5

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #6

Updated by Benni Mack over 9 years ago

  • Status changed from New to Resolved

This should be fixed in the next version!

Actions #7

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF