Modified the url to generate the path dynamically