Closed
Description
Symfony version(s) affected
6.4.0
Description
When trying to translate the url using the router prefix feature the following error occurs:
Target route "app_your_route_name" for alias "App\Controller\YourController::index" does not exist.
How to reproduce
- Create a fresh installation of 6.4.0 (or upgrade a fresh installation from 6.3 to 6.4).
- Create a dummy controller (e.g. with the maker bundle)
- Change
routes.yaml
(https://symfony.com/doc/current/routing.html#localized-routes-i18n):
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute
+ prefix:
+ de: '/de'
+ fr: '/fr'
+ it: '/it'
- run
bin/console cache:clear
Possible Solution
No response
Additional Context
No response