handling urls with relative scheme