Richard Foley Posted May 26, 2015 Report Posted May 26, 2015 I have a plugin in development which needs to redirect the user to a different page, a couple of folders down the /www/admin/.../... hierarchy. I'm using redirect() with a relative-to-base path, like this: OX_Admin_Redirect::redirect("plugins/modulename/blabla.php"); The url is correct, and is correctly handled at the end of the process. The problem is that this *first* appears to log the user out of Revive altogether, which has the effect of sending them to the login page. Once the login details are correctly entered, the user is correctly forwarded to the correct url, as specified above. There are no other arguments sent, and no permission changes that I'm aware of. The user is essentially going back to where they started the process, and has full permissions to do so. It's a tad frustrating to be redirected AND logged out. I hope I've described this clearly. Does anyone have any suggestions for what could be the problem here? Thanks in advance for any helpful tips. R. Quote
Matteo Beccati Posted May 27, 2015 Report Posted May 27, 2015 Hi Richard, that's correct. There's nothing wrong with what you are doing and I can confirm it works here, so there must be something wrong with your test environment. I'm afraid some more debug on your end will be necessary. Richard Foley 1 Quote
Richard Foley Posted May 27, 2015 Author Report Posted May 27, 2015 Yep, Matteo. It's all fine here now. It turned out to be a mishandled object id. Hi Richard, that's correct. There's nothing wrong with what you are doing and I can confirm it works here, so there must be something wrong with your test environment. I'm afraid some more debug on your end will be necessary. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.