resolving relative url issue