I’m building a multilanguage website, where users can choose the language they prefer. I have extended CUrlManager and have build a widget for a form for language selection. Everything works fine, except in the url creation.
I need too have two different urls(patterns) for the same route, so in my config/main.php I have the following rules:
and both should go for the following site/contact, but when creating urls when it finds the first that matches it will stop looking in rules, and so I always get the first, even if I change language.
I’ve seen that already but the only part of the url that changes is the language, the rest doesn’t change, and that is my problem, but thanks for your help.