replace regexp global in #url_for
Merge pull request #8704 from senny/remove_regexp_global_from_url_for

replace regexp global in #url_for