EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Improve docs for admin route definition

Open latenzio opened this issue 1 year ago • 1 comments

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

latenzio avatar Dec 19 '24 11:12 latenzio

Could you please help test if this feature still works with the below patch?

https://github.com/EasyCorp/EasyAdminBundle/pull/6954

andersonamuller avatar May 22 '25 22:05 andersonamuller