Hi Jeff,
I had a couple redirect issues with this site. For one (redirecting users based on their Group ID) I made quick extension: http://devot-ee.com/add-ons/jc-redirect
For the other one, I added an extra form field that had a “no” value. On the alternat Submit-button I had this tiny [removed]
$(".moveon1").click(
function() {
$('#alternate1').attr("value", "yes");
$('#publishForm').submit();
}
);
If that submit-button was clicked, the stored value would be set to “yes”. If the other submit-button was pressed, it would remain “no”. The return URL was a template that then looked up the value that were set and then did this little trick using the Stash-extension and my own redirect script above:
{exp:channel:entries channel="somechannel" author_id="CURRENT_USER" dynamic="off" limit="1"}
{exp:stash:set_list name="redirect" parse_tags="yes" parse_conditionals="yes" parse_depth="2"}
{stash:murl}
{if alternate1 == "no"}http://mysite.eu/sub/{if:else}http://mysite.eu/sub/otherurl/{ordernumber}/{/if}
{/stash:murl}
{/exp:stash:set_list}
{exp:stash:get_list name="redirect"}
{exp:jc_redirect location='{murl}' mode="plain"}
{/exp:stash:get_list}
{/exp:channel:entries}
A little “clumsy” but it works well.
J