Use representation URLs in views.
Use getViewHelper in url methods.