Make checks for urls more explicit so as not to catch custom scheme urls.