Jump to content

Ox_Admin_Redirect Logs User Out...?


Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...