Modify the path variable on parsing. This is needed for generating routes.