Added so that the base url is saved in a newly created url object for referer