fix path for router to go on submit of resource