Redirect to network page after delegation switch

- Add a notice with the switched account name
This commit is contained in:
Hypolite Petovan 2021-12-12 07:54:18 -05:00
parent f4907a48d8
commit f212df79e5

View File

@ -108,8 +108,9 @@ class Delegation extends BaseModule
$ret = [];
Hook::callAll('home_init', $ret);
DI::baseUrl()->redirect('profile/' . DI::app()->getLoggedInUserNickname());
// NOTREACHED
notice($this->t('You are now logged in as %s', $user['username']));
DI::baseUrl()->redirect('network');
}
protected function content(array $request = []): string