Multilanguage And "lang Identity" In Url

Creating multilanguage site using However, the identity of language is added at the end of URL. So it looks like (example): which is not what I want to achieve.

(BTW Since I post first message then I am not allowed to use full URL with protocol :/)

Tried to analyze the code (also method createMultilanguageReturnUrl) but seems I still getting /language/de at the end of URL.

Anyone can suggest me constructive tip? Thanks.

[Update]: After some investigation the "fix" is to modify urlManager settings in main.php config file:

'<language:([a-z]{2}(?:_[a-z]{2})?)>/<route:[\w\/]+>' => '<route>'