Answer the question
In order to leave comments, you need to log in
How to make a route in Symfony that, in the case of a certain parameter, will remove it from the final URL?
I can't figure out how to do
$this->generateUrl('page_locale', [ 'lang' => 'en' ]); in this framework. to automatically remove en from the URL since it's the default language
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question