Fix bug with creating URL  in UrlRule with optional params at the beginning of pattern.
Fix bug with creating URL  in UrlRule with optional params at the beginning of pattern.

yiisoft/yii2-framework,yiisoft/yii2-framework