Saturday 14 April 2007 12:53:20 pm
I had been looking a 'RedirectURI*' string in the kernel classes, didn't expect it to be named following different pattern :) And RedirectIfDiscarded is there. Unfortunately, it doesn't seem to work... Here's my code:
<form method="post" action={'content/action'|ezurl()}>
<input type="hidden" name="ClassIdentifier" value="my_answer_class" />
<input type="hidden" name="NodeID" value="{$answer.node_id}" />
<input type="hidden" name="RedirectURIAfterPublish" value="{$node.url_alias}" />
<input type="hidden" name="RedirectIfDiscarded" value="{$node.url_alias}" />
<input type="submit" name="NewButton" value="REPLY" />
</form>
While redirection after publishing works fine, the other one doesn't (works just as if there was no RedirectIfDiscarded variable). Any suggestions? By the way, it is version 3.9.1.
--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu
|