Issue Bug Closed

#24479Two link elements created for favicon

Thomas Koetter 01/05/11, 15:53 updated 10/02/18, 12:21

Description

Lines 80 and 81 of class.t3lib_pagerenderer.php define two link tags for the favicon:
protected $shortcutTag = ‘<link rel="shortcut icon" href="%1$s">
<link rel="icon" href="%1$s">‘;

According to the HTML standard rel=“icon” would be correct but IE needs rel=“shortcut icon”. However, there’s no reason to repeat the link. The value of the rel attribute will be split on spaces and then parsed. So standards-compliant browsers will understand rel=“shortcut icon” correctly.

(issue imported from #M16921)

Reviews 2