sveltejs/sapper

Document.referrer empty

Closed this issue · 3 comments

Hi,

I try to access the document.referrer but the returned value is always null. An idea of why ?

Thanks.

document.referrer doesn't update when navigating around an SPA. If you entered a Sapper site from an external site (and the link didn't use rel='noreferrer' and you don't have browser privacy settings to block referrers and etc. etc.) then it will always be the URL of the external site you came from. Sapper doesn't do anything special with document.referrer.

@Conduitry Thanks for you answer. So there is no solution? It's not related to routing?

@mmarchois for help and support, please come to Discord