Skip to content

Commit d276194

Browse files
committed
bug #909 Temporary fix for the styles of the error 500 page (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Temporary fix for the styles of the error 500 page I know this is not the right fix ... but I can't fix it in any other way. The error: if you comment the DATABASE_URL config in the .env file, you see a 500 error. In production, that 500 error page sometimes has CSS styles and sometimes hasn't. Example: * This page shows styles: http://symfony-demo.test/index.php/en/blog/posts/lorem-ipsum-dolor-sit-amet-consectetur-adipiscing-elit * This page doesn't: http://symfony-demo.test/index.php/en/blog/ This is just a temporary fix because we need the Symfony Demo to work perfectly for some SymfonyCon session. Commits ------- 7196406 Temporary fix for the styles of the error 500 page
2 parents 279f8a0 + 7196406 commit d276194

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/bundles/TwigBundle/Exception/error500.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
{% extends 'base.html.twig' %}
1212

13+
{% block stylesheets %}
14+
{{ parent() }}
15+
<link rel="stylesheet" href="/build/css/app.4aa95248.css">
16+
{% endblock %}
17+
1318
{% block body_id 'error' %}
1419

1520
{% block main %}

0 commit comments

Comments
 (0)