Closed. This question needs
details or clarity. It is not currently accepting answers.
Answer
Solution:
I??�ve dealt with a similar problem in the past and using the referer header to determine where a user has been. However most browsers don??�t update the referer header on a 3xx request. The referer header will always reference the original request that started the redirect chain.
There??�s a similar question/answer about what browsers do what on StackOverflow:
Will a 302 redirect maintain the referer string?
Source