Right way replacing the 'url_for' helper

There is right way how to replace default url_for helper. In that way everything is going to work correctly.
Tested by Mojolicious 4.58.