Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed redirect error

  • Loading branch information...
commit d0b0780996310ec85141b5935fc687c19cd28e57 1 parent ffe5dd0
Rommel M. Zamora authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Controller/ProfileController.php
View
3  Controller/ProfileController.php
@@ -80,7 +80,8 @@ public function editAuthenticationAction()
$userManager->updateUser($user);
if (null === $response = $event->getResponse()) {
- $response = $this->redirect('sonata_user_profile_show');
+ $url = $this->get('router')->generate('sonata_user_profile_show');
+ $response = $this->redirect($url);
}
$dispatcher->dispatch(FOSUserEvents::PROFILE_EDIT_COMPLETED, new FilterUserResponseEvent($user, $request, $response));
Please sign in to comment.
Something went wrong with that request. Please try again.