Skip to content

Commit 8f04c79

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 d02c662 + 4156b08 commit 8f04c79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Resources/views/error.html.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="<?= $this->charset; ?>" />
55
<meta name="robots" content="noindex,nofollow,noarchive" />
66
<title>An Error Occurred: <?= $statusText; ?></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><?= $this->include('assets/css/error.css'); ?></style>
89
</head>
910
<body>

0 commit comments

Comments
 (0)