correctly qualify url