AnswerBun.com

Craft 3 Registration Form Success Redirect

Craft CMS Asked by GazCrane on March 10, 2021

Is it possible to redirect the user to a specific page after they successfully complete the front-end registration form (before activation)? I’ve tried adding:

<input type="hidden" name="action" value="users/save-user">
<input type="hidden" name="redirect" value="registration-successful">

But it currently just redirects back to the home page. I really need to redirect the user to a page that prompts them to check their email for the activation link. It currently feels a bit broken.

Am I missing something?

Any help much appreciated.

One Answer

The URL needs to be hashed. Try using {{ redirectInput('registration-successful') }}

As documented here: https://docs.craftcms.com/v3/dev/functions.html#redirectinput-url

Correct answer by Udo on March 10, 2021

Add your own answers!

Related Questions

Prevent adding users with same email addresses

1  Asked on January 16, 2021 by mato

     

Looping on the User Field added to Entry

1  Asked on January 15, 2021 by dan-lee

     

Path to asset file shows “Template not found!”

0  Asked on January 12, 2021 by ichigo

     

Can’t enable plugins

0  Asked on January 12, 2021

 

Craft Nitro PHP extension ext-zip * is missing

1  Asked on January 11, 2021

   

photo processing python

0  Asked on January 11, 2021 by leonidk

   

Getting unique values from Smart Map addresses

1  Asked on January 10, 2021 by eric-snyder

   

Front End Search Related Entries

1  Asked on January 4, 2021

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir