Handle # in URL when comparing profiles