Favicon and 301/302 redirection
Context
Currently, a favicon is displayed with the organisation name. That's really great.
The favicon URL is build on the website URL given by the author of the event. That's a brillant idea.
Problem
If the website URL gived by the author of the event is a redirection with HTTP 301 or 302 then the favicon URL is still build with the given URL.
So fancyful favicon could be displayed.
Example
In the page https://www.agendadulibre.org/orgas/4130?&page=2, the website URL given is: http://nantes.openstreetmap.fr
cpm@ocmstar (23:03:14) ~ 2 > curl -I http://nantes.openstreetmap.fr/
HTTP/1.1 301 Moved Permanently
Location: http://wiki.openstreetmap.org/wiki/Nantes
cpm@ocmstar (23:03:25) ~ 3 > curl -I http://nantes.openstreetmap.fr/favicon.ico
HTTP/1.1 200 OK
Content-Type: image/x-icon
So the Gandi favicon is displayed for the OpenStreetMap organisation.
Suggestion
In building the favicon URL, follow all the HTTP redirections of the website URL given and then use the final new URL.
cpm@ocmstar (23:03:14) ~ 2 > curl -I http://nantes.openstreetmap.fr/
HTTP/1.1 301 Moved Permanently
Location: http://wiki.openstreetmap.org/wiki/Nantes
cpm@ocmstar (23:21:25) ~ 4 > curl -I http://wiki.openstreetmap.org/wiki/Nantes
HTTP/1.1 301 Moved Permanently
Location: https://wiki.openstreetmap.org/wiki/Nantes
cpm@ocmstar (23:24:23) ~ 5 > curl -I https://wiki.openstreetmap.org/wiki/Nantes
HTTP/1.1 200 OK
cpm@ocmstar (23:20:40) ~ 6 > curl -I https://wiki.openstreetmap.org/favicon.ico
HTTP/1.1 200 OK