Преглед на файлове

[FrameworkBundle] Adding a title tag to make the default error page just a little bit longer so that chrome displays it

The background is that Chrome only displays the content returned on an error page if payload is at least 512 bytes.
Prior to this change, the 404 page was just a few bytes short, resulting in the Chrome error message instead of the
real one returned by Symfony (confusing for the user).
Ryan Weaver преди 14 години
родител
ревизия
1910e23df8
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/error.html.twig

+ 1 - 0
src/Symfony/Bundle/FrameworkBundle/Resources/views/Exception/error.html.twig

@@ -2,6 +2,7 @@
 <html>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+        <title>An Error Occurred: {{ status_text }}</title>
     </head>
     <body>
         <h1>Oops! An Error Occurred</h1>