G
G
Grigory Vasilkov2017-09-23 20:48:22
symfony
Grigory Vasilkov, 2017-09-23 20:48:22

Symfony - default_locale - Route without locale?

I'm trying to figure it out, it always looks familiar after other frameworks
How to make a route in which you can not specify the language, but you can specify from a certain list?
I understand about _locale and defaults: _locale : en|ru|es
And if you need a route that would work without a language and redirect to the language - is it that there will be two identical actions or a pseudo-action with a forward?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question