<p>If the user account that is registering has access to the control panel, either directly or via a user group, then they'll get redirected to the control panel login page after clicking the activation link in the email.</p>

<p>If they don't have access to the control panel, then they'll get redirected to the '<a href="http://buildwithcraft.com/docs/config-settings#activateAccountSuccessPath" rel="nofollow">activateAccountSuccessPath</a>' config setting.</p>

CC BY-SA 3.0
2014-10-14T07:54:00.443Z
Thanks Brad; any way I can change this behaviour? These users only have access to the one page they own in the CMS (auto created on activation by a plugin) - it seems madness to have to try and emulate the CMS's editing page with all its intricate behaviours on the front end just to get the activation redirect to work as wanted.
Matt Wilcox
CC BY-SA 3.0
2014-10-14T15:00:09.410Z
Not currently. Send an email to support@buildwithcraft.com describing your whole registration/plugin workflow and we'll see what we can come up with.
Brad Bell
CC BY-SA 3.0
2014-10-13T16:37:35.933Z
2014-10-13T16:37:35.933Z
Brad Bell
<p>Brad’s answer does a good job explaining the behavior so I’m leaving the original Q&amp;A in-tact, but it’s possible to work around the behavior with a plugin.</p>

<p>I posted a new Q&amp;A that explains how to do that:</p>

<p><a href="https://craftcms.stackexchange.com/q/13416/9">How can I set the &quot;activateAccountSuccessPath&quot; for users with Control Panel access?</a></p>

CC BY-SA 3.0
2016-01-27T21:30:20.357Z
2016-01-27T21:30:20.357Z
2017-04-13T12:51:00.303Z
Brandon Kelly
<p>I have a bi-lingual site with public registration, the site has a front-end registration form which when completed sends the user to an 'activation pending' page correctly, then sends an email off that the user must click to activate the account.</p>

<p>Clicking that link takes the user to the normal Craft login page, and I am expecting it to instead take the user to the page I've got set up as a welcome message and FAQ.</p>

<p>My code is:</p>

<pre><code>return array(
'*' =&gt; array(
    'omitScriptNameInUrls'       =&gt; true,          // Whether Craft should omit the script filename currently being used to access Craft (e.g. index.php) when generating URLs
    'cpTrigger'                  =&gt; 'secretadmin', // The URI segment Craft should look for when determining if the current request should route to the CP rather than the front-end website
    'maxUploadFileSize'          =&gt; '16777216',    // 16Mb
    'phpMaxMemoryLimit'          =&gt; '128M',        // The maximum amount of memory Craft will try to reserve during memory intensive operations such as zipping, unzipping and updating
    'enableCsrfProtection'       =&gt; true,          // Protect against Cross Site Request Forgery; http://buildwithcraft.com/help/csrf-protection
    'searchIgnoreWords'          =&gt; array('a',
                                          'the',
                                          'and',
                                          'as',
                                          'if'),   // Words that should be ignored when indexing search keywords and preparing search terms to be matched against the keyword index
    'purgePendingUsersDuration'  =&gt; 'P1W',         // If a user hasn't confirmed their registration in under a week, delete it.
    'activateAccountFailurePath' =&gt; array('en_gb' =&gt; '/accounts/activation-failed',
                                          'cy_gb' =&gt; '/accounts/activation-failed'),   // Where to send failed account activations (only from front-end registration forms)
    'activateAccountSuccessPath' =&gt; array('en_gb' =&gt; '/accounts/activation-succeeded',
                                          'cy_gb' =&gt; '/accounts/activation-succeeded'), // Where to send successful account activations (only from front-end registration forms)
),
...
);
</code></pre>

<p>The docs do say the <code>activateAccountSuccessPath</code> only applies to front-end registration, but that's what I'm doing?</p>

<p>What have I misunderstood or didn't set correctly?</p>

<users><activation>
activateAccountSuccessPath doesn't work as expected
# activateAccountSuccessPath doesn't work as expected

(Asked by: username_0 on 2014-10-13)

I have a bi-lingual site with public registration, the site has a front-end registration form which when completed sends the user to an 'activation pending' page correctly, then sends an email off that the user must click to activate the account.
Clicking that link takes the user to the normal Craft login page, and I am expecting it to instead take the user to the page I've got set up as a welcome message and FAQ.
My code is:
return array(
'*' => array(
    'omitScriptNameInUrls'       => true,          // Whether Craft should omit the script filename currently being used to access Craft (e.g. index.php) when generating URLs
    'cpTrigger'                  => 'secretadmin', // The URI segment Craft should look for when determining if the current request should route to the CP rather than the front-end website
    'maxUploadFileSize'          => '16777216',    // 16Mb
    'phpMaxMemoryLimit'          => '128M',        // The maximum amount of memory Craft will try to reserve during memory intensive operations such as zipping, unzipping and updating
    'enableCsrfProtection'       => true,          // Protect against Cross Site Request Forgery; http://buildwithcraft.com/help/csrf-protection
    'searchIgnoreWords'          => array('a',
                                          'the',
                                          'and',
                                          'as',
                                          'if'),   // Words that should be ignored when indexing search keywords and preparing search terms to be matched against the keyword index
    'purgePendingUsersDuration'  => 'P1W',         // If a user hasn't confirmed their registration in under a week, delete it.
    'activateAccountFailurePath' => array('en_gb' => '/accounts/activation-failed',
                                          'cy_gb' => '/accounts/activation-failed'),   // Where to send failed account activations (only from front-end registration forms)
    'activateAccountSuccessPath' => array('en_gb' => '/accounts/activation-succeeded',
                                          'cy_gb' => '/accounts/activation-succeeded'), // Where to send successful account activations (only from front-end registration forms)
),
...
);

The docs do say the activateAccountSuccessPath only applies to front-end registration, but that's what I'm doing?
What have I misunderstood or didn't set correctly?

**Tags:** users, activation


---

## 2 answers

### Answer by username_1 on 2014-10-13. Score: 1

If the user account that is registering has access to the control panel, either directly or via a user group, then they'll get redirected to the control panel login page after clicking the activation link in the email.

If they don't have access to the control panel, then they'll get redirected to the '[activateAccountSuccessPath](http://buildwithcraft.com/docs/config-settings#activateAccountSuccessPath)' config setting.

> **Comments:**
> **username_0**: Thanks Brad; any way I can change this behaviour? These users only have access to the one page they own in the CMS (auto created on activation by a plugin) - it seems madness to have to try and emulate the CMS's editing page with all its intricate behaviours on the front end just to get the activation redirect to work as wanted.  
> **username_1**: Not currently. Send an email to support@buildwithcraft.com describing your whole registration/plugin workflow and we'll see what we can come up with.  

---

### Answer by username_2 on 2016-01-27. Score: 1

Brad’s answer does a good job explaining the behavior so I’m leaving the original Q&A in-tact, but it’s possible to work around the behavior with a plugin.

I posted a new Q&A that explains how to do that:

[How can I set the "activateAccountSuccessPath" for users with Control Panel access?](https://craftcms.stackexchange.com/q/13416/9)


---

