Contao Open Source CMS > Contao forum

Switch to german forum

Index > Bug report > Go Back link uses favicon.ico when using safari

thyon
User
Avatar
Posts: 1756
Cape Town, South Africa
Launch Safari, then visit a Newsletter List page, then click on a newsletter in the Newsletter List to navigate to the Newsletter Reader page. The go-back link has a chance of pointing to the favicon.ico, as Safari retrieves this file in the background, and TL sets the Referred to that instead of ignoring any favicon.ico retrievals in referrer setting.

The result is that the Go Back link on the Reader page wants to return to the favicon.ico instead of the page it was linked from. This happens in Safari, because it automatically retrieves the favicon.ico, regardless of whether it is being linked in the META of a site or not. This hidden retrieval seems to be setting the referrer to favicon.ico instead of the "real" referrer page, e.g. newsletter-list.html (in my case).

Maybe there should be a referrer ignore setting where a list of items can be specified to ignore when a referrer link is set in the session.
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
Manuals: QuickPoll, FormAuto, EventsAttend, Galleries, Invitations, Catalog, Catalog Ext, Catalog Tutorials, Catalog Multi-language Tutorial
2008-08-18 10:33
leo
Administrator
Avatar
Posts: 7045
Wuppertal, Germany
I am not able to reproduce this issue with version 2.5.9+ (neither local nor in the online demo).
2008-08-18 10:52
thyon
User
Avatar
Posts: 1756
Cape Town, South Africa
Perhaps the windows version doesn't download the Favicon.ico. It might also only do this when the cache is clear, so its forced to retrieve the favicon.ico.

This is the background:
1. Safari initiates a page load for Newsletter List page (and sets the referrer to this page)
2. Click on newsletter link, Safari loads the Newsletter Reader page
2. Safari initiates a graphic retrieval for favicon.ico (which then wipes the previous referrer in the TL session list)
3. Go back link will therefore link to favicon.ico.

This is similar to the download link on a page which also destroys the referrer -- previous bug, which you sent a patch for.
Last edited by thyon, 2008-08-18 10:58
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
Manuals: QuickPoll, FormAuto, EventsAttend, Galleries, Invitations, Catalog, Catalog Ext, Catalog Tutorials, Catalog Multi-language Tutorial
2008-08-18 10:58
leo
Administrator
Avatar
Posts: 7045
Wuppertal, Germany
iconthyon:
Perhaps the windows version doesn't download the Favicon.ico

I am not using Windows. Tested on Mac OS X 10.5 (not reproducible).
2008-08-18 11:07
thyon
User
Avatar
Posts: 1756
Cape Town, South Africa
I discovered this problem more than a year ago, but I thought it might have been my system, but now I'm using another iMac with leopard, so it must be safari's favicon auto-retrieval.

Why does a CSS file not overwrite the referrer (i haven't checked the code myself)? Perhaps a simple test to remove favicon.ico from the referrer list would help.
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
Manuals: QuickPoll, FormAuto, EventsAttend, Galleries, Invitations, Catalog, Catalog Ext, Catalog Tutorials, Catalog Multi-language Tutorial
2008-08-18 11:15
leo
Administrator
Avatar
Posts: 7045
Wuppertal, Germany
Hi thyon,

please adjust the rewrite rules in your .htaccess file as follows:

iconCode:
#RewriteRule .* index.php [L]
RewriteRule .*\.html$ index.php [L]

Regards
Leo
2008-08-18 12:35