After a bit of experimenting, I found that it worked perfectly to change
http://mysite.com/login.php?redirect_to=%{REQUEST_URI}
to
http://mysite.com/member/login
(which is the site's login page). Seems to work perfectly. Does this seem like the right way to go, or are there hidden pitfalls?
Edit:
Hm, seemed to work perfectly, for a while, but now not ... so I'll keep experimenting.
Edit:
OK, I think I get it now: the
?redirect_to=%{REQUEST_URI} bit redirects the user to the requested file after login. Seems to be working again now. I tried navigating to the file in the browser and got redirected, but at first, but I was finding that if I clicked a link (say, in an email) to the requested file, it would still load. But now it's redirecting to the login page. And thus I bumble along ...
Bookmarks