Added Alvin's changes to make the relative url.