Skip to content

Commit

Permalink
Merge pull request #1572 from appwrite/fix-also-check-ref
Browse files Browse the repository at this point in the history
Also check ref not only referrer
  • Loading branch information
ernstmul authored Dec 23, 2024
2 parents 71de681 + 9ffb9a7 commit 0fdcf7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
if (ref || referrer || utmSource || utmCampaign || utmMedium) {
createSource(ref, referrer, utmSource, utmCampaign, utmMedium);
}
if (referrer) {
sessionStorage.setItem('referrer', referrer);
if (referrer || ref) {
sessionStorage.setItem('referrer', referrer ? referrer : (ref ?? ''));
}
if (utmSource) {
sessionStorage.setItem('utmSource', utmSource);
Expand Down

0 comments on commit 0fdcf7c

Please sign in to comment.