Document.referrer empty
Closed this issue · 3 comments
mmarchois commented
Hi,
I try to access the document.referrer but the returned value is always null. An idea of why ?
Thanks.
Conduitry commented
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
.
mmarchois commented
@Conduitry Thanks for you answer. So there is no solution? It's not related to routing?
antony commented
@mmarchois for help and support, please come to Discord