Removal of unnecessary code in generating link URL.