Forums / Developer / RedirectURI
Clemens T
Wednesday 26 October 2005 4:25:29 am
Heya all,I just wrote an override for user class, when I'm done editing I'd like to redirect the user to a page called: 'extranet/my_profile'. Where the user gets an overview of his current user profile, and some extra info.
This is my code in the template:
<div class="buttonblock"> <input class="defaultbutton" type="submit" name="PublishButton" value="{'Store'|i18n('design/base')}" /> <input class="button" type="submit" name="DiscardButton" value="{'Cancel'|i18n('design/base')}" /> <input type="hidden" name="RedirectURI" value="/extranet/my_profile/" /> <input type="hidden" name="DiscardConfirm" value="0" /> </div>
The RedirectURI doesn't seem to work, because it redirects to my Exponential content view page of a user when I click the DiscardButton.(and offcourse it should redirect to the /extranet/my_profile/ then as well)
Please help! Thanks,Clemens
Wednesday 26 October 2005 4:51:06 am
Got it, from the core:
<input type="hidden" name="RedirectURIAfterPublish" value="/extranet/my_profile/" /> <input type="hidden" name="RedirectIfDiscarded" value="/extranet/my_profile/" />