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?
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.
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:
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.
You must be logged in to post messages in this topic!