Skip to content

Commit 7d9c2ea

Browse files
minor #46392 [ErrorHandler][HttpKernel] Add favicon to welcome and error pages (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [ErrorHandler][HttpKernel] Add favicon to welcome and error pages | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Similar to symfony/recipes#1023, saves some spammy http requests when displaying those pages. Commits ------- af57714fc8 [HttpKernel][ErrorHandler] Add favicon to welcome and error pages
2 parents e182a3c + 9424b71 commit 7d9c2ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Resources/welcome.html.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="robots" content="noindex,nofollow,noarchive,nosnippet,noodp,notranslate,noimageindex" />
66
<title>Welcome to Symfony!</title>
7+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>👋</text></svg>">
78
<style>
89
<?php $hue = random_int(0, 360); ?>
910
<?php $darkColor = static function (float $alpha = 1) use ($hue) { return "hsla($hue, 20%, 45%, $alpha)"; }; ?>

0 commit comments

Comments
 (0)