How can I set the "activateAccountSuccessPath" for users with Control Panel access? I have a site that allows public registration, and I want to be able to control where users are redirected to after activating their account. However the default user group has access to the Control Panel, so as explained in “activateAccountSuccessPath doesn&#39;t work as expected”, users are taken to the Control Panel login page after activation, rather than the path defined by the activateAccountSuccessPath config setting.

Is there any way to change that behavior, so even users with access to the Control Panel will get redirected to the activateAccountSuccessPath after account activation?
You can write a plugin that listens to the users.onActivateUser event, and manually redirects the browser to your desired page.

Just add this code to your plugin’s primary class:

public function init()
{
    craft()-&gt;on('users.activateUser', array($this, 'onActivateUser'));
}

public function onActivateUser(Event $event)
{
    /* @var UserModel $user */
    $user = $event-&gt;params['user'];

    // Are they in the default group?
    // (Indicates this was probably public registration)
    if ($user-&gt;isInGroup('myDefaultGroup'))
    {
        // Redirect them to the activateAccountSuccessPath
        $activateAccountSuccessPath = craft()-&gt;config-&gt;getLocalized('activateAccountSuccessPath');
        $url = UrlHelper::getSiteUrl($activateAccountSuccessPath);
        craft()-&gt;request-&gt;redirect($url);
    }
}