fixed detection of invalid shared URLs