I have this pattern for urls:
'<lang:([a-z]{2})>/<controller>/<action>'
Now using \yii\helpers\Url::current()
does automatically include the lang param.
But \yii\helpers\Url::to()
does not do that automatically, I have to pass it additonally as a param.
Has anybody encountered/solved this?