Permalink
Browse files

fixed redirect error

  • Loading branch information...
1 parent ffe5dd0 commit d0b0780996310ec85141b5935fc687c19cd28e57 Rommel M. Zamora committed Dec 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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));

0 comments on commit d0b0780

Please sign in to comment.