Set relative url correctly on request change