From a93609014b4c046684a3845515915200491fca15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Wed, 3 Jan 2024 18:41:08 +0100 Subject: [PATCH] IBX-7130: Redirect back to user setting after updating password (#66) --- src/bundle/Controller/PasswordChangeController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/Controller/PasswordChangeController.php b/src/bundle/Controller/PasswordChangeController.php index 114d26d..e23fc5f 100644 --- a/src/bundle/Controller/PasswordChangeController.php +++ b/src/bundle/Controller/PasswordChangeController.php @@ -16,7 +16,6 @@ use Ibexa\User\View\ChangePassword\FormView; use Ibexa\User\View\ChangePassword\SuccessView; use JMS\TranslationBundle\Annotation\Desc; -use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; @@ -79,7 +78,9 @@ public function userPasswordChangeAction(Request $request) 'ibexa_change_password' ); - return new RedirectResponse($this->generateUrl('ibexa.dashboard')); + return $this->redirectToRoute('ibexa.user_settings.list', [ + '_fragment' => 'ibexa-tab-my-account-settings', + ]); } return new SuccessView(null);