Reputation: 2661
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