Answer the question
In order to leave comments, you need to log in
How to go to find out the link from which the user came?
For example, there is a link to something, the user follows it, gets (redirect) to the "Login" window, logged in and I need to then follow the link that he initially clicked on, and not get to the main one. How to do it? How to get this "original" link?
Answer the question
In order to leave comments, you need to log in
Before the redirect, "remember" HTTP_REFERER - it will contain the path from where the user came from, and after authorization, redirect him to the "saved" path
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question