Quantcast
Channel: User Cavell Blood - Craft CMS Stack Exchange
Viewing all articles
Browse latest Browse all 21

User Registration Form Redirect not working Craft 2.5

$
0
0

I'm using the following code but the redirect is not working. After the user registers it takes them back to the home page and not to volunteer/identity. I put a message on the homepage to display if the user is logged in and it appears that they are logged it at that point. This used to work before 2.5 on a different site that I haven't upgraded to 2.5. But now on this new install of 2.5 I can't get it to work.

Has anyone else experienced the same issues?

{% extends "_layout" %}{% block content %}<form method="post" accept-charset="UTF-8">    {{ getCsrfInput() }}<input type="hidden" name="action" value="users/saveUser"><input type="hidden" name="redirect" value="volunteer/identity">    {% macro errorList(errors) %}        {% if errors %}<ul class="errors">                {% for error in errors %}<li>{{ error }}</li>                {% endfor %}</ul>        {% endif %}    {% endmacro %}    {% from _self import errorList %}<label for="firstName">First Name</label><input id="firstName" type="text" name="firstName" {% if account is defined %} value="{{ account.firstName }}"{% endif %}>    {% if entry is defined %}        {{ errorList(account.getErrors('firstName')) }}    {% endif %}<label for="lastName">Last Name</label><input id="lastName" type="text" name="lastName" required {% if account is defined %} value="{{ account.lastName }}{% endif %}">    {% if entry is defined %}        {{ errorList(account.getErrors('lastName')) }}    {% endif %}<label for="email">Email</label><input id="email" type="text" name="email"        {% if account is defined %} value="{{ account.email }}"{% endif %}>    {% if account is defined %}        {{ errorList(account.getErrors('email')) }}    {% endif %}<label for="password">Password</label><input id="password" type="password" name="password">    {% if account is defined %}        {{ errorList(account.getErrors('password')) }}    {% endif %}<button type="submit" class="button">Save and continue</button></form>{% endblock %}

My config file looks like this:

return array('devMode' => true,'useEmailAsUsername' => true,'autoLoginAfterAccountActivation' => true,'omitScriptNameInUrls' => true,'setPasswordPath' => array('en' => 'account/setpassword'    ),);

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>