JMSI18nRoutingBundle icon indicating copy to clipboard operation
JMSI18nRoutingBundle copied to clipboard

Router not loaded on Error Page / Exception.

Open lunetics opened this issue 10 years ago • 1 comments

Given you have a route: my_route Enabling the Bundle creates / modifies the routes to e.g.

en__RG__my_route

Normally you can use as usual e.g. path("my_route") to generate a path in twig. When using this on an error page, an exception is thrown:

Symfony\Component\Routing\Exception\ResourceNotFoundException: in /home/www/site/app/cache/prod/appProdUrlMatcher.php on line 409

Using the route en__RG__my_route works in/on the error page, but that's not the goal.

So it seems the i18n router gets somewhere dropped or similar through the exception?

lunetics avatar Mar 21 '14 00:03 lunetics