Right way replacing the 'url_for' helper