replace regexp global in #url_for

WIP:

I replaced `$& ` with `"\&"` in the `sub` expression.

We don't have any test-coverage for this case though. (everything passes without the reference to the match). I think we should add coverage to see what it actually does :smile: