Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs for admin route definition #6660

Open
latenzio opened this issue Dec 19, 2024 · 0 comments
Open

Improve docs for admin route definition #6660

latenzio opened this issue Dec 19, 2024 · 0 comments

Comments

@latenzio
Copy link

latenzio commented Dec 19, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant