correcting the path in the url for links