Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Routing] Prefix feature for i18n routes is broken #52802

Closed
@plandolt

Description

@plandolt

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions