Fix: external links not working due to regression in isSameOrigin