Adds a $path option to url generation.