Tom
Tom

Reputation: 2661

How to detect if someone got routed from a different page to my platform

I can reach a React component through multiple buttons on my page. If the user comes through one of those buttons within my platform I can just use router.back() but what if they copy the url into the browser? How could I detect this? document.referrer is always empty for me.

Upvotes: -1

Views: 14

Answers (0)

Related Questions