Switch route object to new object name
Add path back into if