fix computing URI If does not match site base url