Resolve issue with # containing URLS