From f212df79e5f87cfc06bccdc7296fe125ef7798ea Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 12 Dec 2021 07:54:18 -0500 Subject: [PATCH] Redirect to network page after delegation switch - Add a notice with the switched account name --- src/Module/Delegation.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index bc3c72e8d0..c1cf15759f 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -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