Modify router to trigger route correctly