<![CDATA[ Can't redirect from confirmregistration snippet? - My Forums]]> https://forums.modx.com/thread/?thread=90894 <![CDATA[Can't redirect from confirmregistration snippet?]]> https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-497865
After some effort, I have got my registration going well. But I can't seem to redirect from the confirm registration snippet resource. Could someone provide an assist? How do other people do this? I can just put a link in that resource to the forums...

My registration call is direct from the example, and the page numbers and member type are all right:

<h2>Register</h2>
 
[[!Register?
    &submitVar=`registerbtn`
    &activationResourceId=`9`
    &activationEmailTpl=`myActivationEmailTpl`
    &activationEmailSubject=`Thanks for Registering!`
    &submittedResourceId=`13`
    &usergroups=`2`
    &validate=`nospam:blank,
  username:required:minLength=^6^,
  password:required:minLength=^6^,
  password_confirm:password_confirm=^password^,
  fullname:required,
  email:required:email`
    &placeholderPrefix=`reg.`
]]
 
<div class="register">
    <div class="registerMessage">[[!+reg.error.message]]</div>
 
    <form class="form" action="[[~[[*id]]]]" method="post">
        <input type="hidden" name="nospam" value="[[!+reg.nospam]]" />
 
        <label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.username]]</span>
        </label>
        <input type="text" name="username" id="username" value="[[!+reg.username]]" />
 
        <label for="password">[[%register.password]]
            <span class="error">[[!+reg.error.password]]</span>
        </label>
        <input type="password" name="password" id="password" value="[[!+reg.password]]" />
 
        <label for="password_confirm">[[%register.password_confirm]]
            <span class="error">[[!+reg.error.password_confirm]]</span>
        </label>
        <input type="password" name="password_confirm" id="password_confirm" value="[[!+reg.password_confirm]]" />
 
        <label for="fullname">[[%register.fullname]]
            <span class="error">[[!+reg.error.fullname]]</span>
        </label>
        <input type="text" name="fullname" id="fullname" value="[[!+reg.fullname]]" />
 
        <label for="email">[[%register.email]]
            <span class="error">[[!+reg.error.email]]</span>
        </label>
        <input type="text" name="email" id="email" value="[[!+reg.email]]" />
 
        <br class="clear" />
 
        <div class="form-buttons">
            <input type="submit" name="registerbtn" value="Register" />
        </div>
    </form>
</div>


When I just had the confirm register snippet in the resource, the email gave me a good link and I could open the page (I put a short sentence in there to be sure I was getting the right page).

But then, when I added
&redirectTo=`2`
after the confirm registration snippet, it makes the snippet not work.

Any idea how to handle this? Thanks in advance!!]]>
nuan88 May 13, 2014, 08:52 AM https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-497865
<![CDATA[Re: Can't redirect from confirmregistration snippet?]]> https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-512800
Thanks though!]]>
nuan88 Oct 16, 2014, 11:11 AM https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-512800
<![CDATA[Re: Can't redirect from confirmregistration snippet? (Best Answer)]]> https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-511651 Quote from: nuan88 at May 13, 2014, 01:52 PM
Hello all:

[...]

When I just had the confirm register snippet in the resource, the email gave me a good link and I could open the page (I put a short sentence in there to be sure I was getting the right page).

But then, when I added
&redirectTo=`2`
after the confirm registration snippet, it makes the snippet not work.

Any idea how to handle this? Thanks in advance!!

Your post is quite old (4 months) and I don't see any replies. Did you resolve the issue? If not, I will try and help you out.]]>
jrg Sep 30, 2014, 11:44 AM https://forums.modx.com/thread/90894/can-t-redirect-from-confirmregistration-snippet#dis-post-511651