Forums / Developer / Problem with canceling user profile edit

Problem with canceling user profile edit

Author Message

Viktor Juhász

Friday 05 May 2006 1:04:17 pm

I have a problem with canceling user profile editing.

If I click on Cancel button after editing, a wrong page loading: /users/guest_accounts/user_name.

It has to go back to the profile page, or the page where the user edit the profile before.

I use eZp 3.6.7.

Whats wrong? Any idea?

Regards,
Viktor

Łukasz Serwatka

Sunday 14 May 2006 11:46:27 pm

Hi,

You can use one of this 2 hidden variables to control redirection:

<input type="hidden" name="CancelURI" value="/path/somewhere" />
<input type="hidden" name="RedirectURIAfterPublish" value="/path/somewhere" />
<input type="hidden" name="RedirectIfDiscarded" value="/path/somewhere" />

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog