Adds proper paths for back and edit links on edit and show views.