I was under the impression that only worked for nodejs, but if works for php too, then that’s great!
The only issue is the query expression isn’t be sent to the server because I would be using the anchor link, so the server would not know where to send the user back to the page they were on after they logged in.
From a user point of view, if they try to access a restricted page that requires a login, they would expect to be sent back to the page they were on after they logged in, instead of having to navigate back to the page themselves.
I had the same issue, Nodejs redirect to intended URL after login, when I was experimenting with nodejs and that’s one of the reasons I came back to php because I thought it would be different. I could have sworn I had this working on a different project, but perhaps I ended up discarding the Facebook OAuth route and used a traditional login route instead to avoid this issue.
Thanks for taking the time to look at this @Teodor, I appreciate it.