Skip to content

Improve docs for admin route definition #6660

@latenzio

Description

@latenzio

Short description of what this feature will allow to do:
Make easy admin dashboard route respect locale detection. Enable redirect from /admin to /admin/[DETECTED_LOCALE].
Please enhancement examples in docs.

Example of how to use this feature

#[Route('/admin/{_locale}', name: 'admin', defaults: ['_locale' => null])]
framework:
    set_locale_from_accept_language: true
    set_content_language_from_locale: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions