Forums / Developer / Redirecting after content publishing

Redirecting after content publishing

Author Message

Vincent Saulnier

Friday 29 August 2003 11:40:12 am

Referring to this article :
http://ez.no/content/view/full/30281/

Don't you think that this functionality should work with the cancel button to?

Selmah Maxim

Sunday 31 August 2003 8:50:21 am

Yes ...
also in the confirm to remove the object !

Vincent Saulnier

Monday 01 September 2003 7:48:12 pm

Do you think it's gonna work in the eZ 3.2 final?

Paul Forsyth

Tuesday 02 September 2003 12:08:58 am

Personally i think the default behaviour of a redirect from a cancel (and confirm cancel) should be to take the user back to the location before the object was created. If you cancel publication you should return to the place you instigated the publication.

Redirecting to elsewhere would be confusing in terms of what they expect from guis. For example, if you cancel pop up boxes that your operating system from time to time pops up in front of you, you would expect to no change to the system when cancel is pressed.

However, if there is a good reason to redirect maybe it should be allowed. Can you give an example of the type of situation you may wish to redirect upon cancel?

Paul

Selmah Maxim

Tuesday 02 September 2003 12:26:08 am

I got problem after confirm that user will redirect to nodeid 2, and its not accessble for normal users, so he get error msg, coz of this i made override for nodeid 2.

also when user edit his profile, after submit sometimes redirect the user to the users list, he get error msg, but this solve it hidden 'ReDirect' input.

this will as option, if the form have hidden redirect valu, then user will be taken to this page, else will be take to the last visited page.

Even if every thing its finr, but will be nice if you can manage the 'redirect' page.

Paul Forsyth

Tuesday 02 September 2003 12:32:15 am

If a redirect is taking you elsewhere than where you expect on cancel then maybe an explicit redirect is needed there.

I had the same problem when user editing and submitting, yes, a redirect there worked fine for me. But that will only work for the submit, not the cancel.

The redirect to node 2 might be a problem with your site.ini. Maybe the site.ini.append file (whichever is being used) contains a default value for redirection that overrides whatever the system is trying to do (take you back to the last visited location...).

btw, the new url translation feature in 3.2 will redirect you from 'a' to 'b'. so you can define this redirect. however, as i say in this thread:

http://ez.no/developer/ez_publish_3/forum/developer/32_url_management_question

i think that its a bug!

paul

Vincent Saulnier

Tuesday 02 September 2003 8:33:35 am

Selmah is right, this is exactly why I need this functionality.

I also thought of an other reason why we would need something like this :

What about if you crete a new module and you want to use the content module within it. You would need to tell the content module that you want to redirect to your own module.