Refactor the url view helper to use the new link generator