Skip to content

Commit

Permalink
Stop using the default twig path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Feb 7, 2024
1 parent f5f2fab commit 3944dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/ExceptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public function show(Request $request, Throwable $exception): Response
$statusCode = $this->getStatusCode($exception);
}

$template = '@default/bundles/TwigBundle/Exception/error.html.twig';
$template = 'bundles/TwigBundle/Exception/error.html.twig';
if ($statusCode == 404) {
$template = '@default/bundles/TwigBundle/Exception/error404.html.twig';
$template = 'bundles/TwigBundle/Exception/error404.html.twig';
}

$response = new Response('', $statusCode);
Expand Down

0 comments on commit 3944dcf

Please sign in to comment.