Redirect to network page after delegation switch
- Add a notice with the switched account name
This commit is contained in:
parent
f4907a48d8
commit
f212df79e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user