Fixes #2426: Changed URL creation method signatures to be consistent
Merge pull request #2501 from yiisoft/unify-urls

Fixes #2426: Changed URL creation method signatures to be consistent