change the link part from url to base url for correct reference