Skip to content

Commit

Permalink
IBX-7130: Redirect back to user setting after updating password (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs authored Jan 3, 2024
1 parent a93d1c0 commit a936090
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bundle/Controller/PasswordChangeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a936090

Please sign in to comment.