Forums / Developer / REDIRECTION After login from unsuccesfull new object action

REDIRECTION After login from unsuccesfull new object action

Author Message

rudy demo

Saturday 21 May 2005 4:18:38 am

Hi.
I think this is not possible in eZ but I would need a confirmation.

A user tries to add a new object but he is not logged in yet. When he click the ADD button, he's normally asked to log in. But when he is logged in, eZ does not redirect to the object edit page but to the site default redirect page.

I think this is simply because eZ base itseld on the URL to know where to redirect. So usually, when redirecting to a page (.../view/123) not authorised, eZ knows from the URL what is the node/object viewed/edited. But here the URL is just http://somethin/plain/content/action so eZ does not pick the POST vars and thus cannot simply know where to redirect.

Correct?

If this is correct, is there a workaround knowing that the classics Redirect... operators will not work here?
Thank you.
Many thanks.

Xavier Dutoit

Saturday 21 May 2005 8:27:31 am

Workaround I've used:

On the layout where you display the button "add", don't display the button add, but display another "add" button, with a page explaining why and how he can sign up or login.

With that, you can better control the behavior of ez.

X+

http://www.sydesy.com