Forums / Setup & design / Redirect on discard or delete

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Redirect on discard or delete

Author Message

Karl H

Friday 12 October 2007 9:11:54 am

Hello,

We've got a simple function allowing members to upload files and also delete these if they want to. When they've uploaded a file, I've used something like

<input type="hidden" name="RedirectURIAfterPublish" value={concat("/page/NODE/")|ezurl} />

to redirect them back to the file-upload section. But when a member deletes a file, or starts to upload/delete a file and discards the process, I can't seem to redirect them anylonger. I've tried:

<input type="hidden" name="RedirectIfDiscarded" value={concat("/page/NODE/")|ezurl} />

in both the template override for the file-upload section and in the removeobject.tpl, which seems to get called in the /content/action process. This doesn't seem to work though, instead it redirects to:

content/view/full/2

I could live with this as a compromise normally, but this site has a different node as root, so it looks very ugly when they get redirected to the eZ root (2).

I've searched the forums, but can't find any solutions which work, so any help is much appreciated!

Karl