Added sanity checks to the share URL.