change url to relative in view