Skip to content
Snippets Groups Projects
Verified Commit 5ef96839 authored by Jonas Leder's avatar Jonas Leder
Browse files

redirect back to page after update instead of rendering page

parent 112a7aa9
No related merge requests found
...@@ -46,6 +46,6 @@ class AdminController extends AbstractController ...@@ -46,6 +46,6 @@ class AdminController extends AbstractController
'message' => 'The profile for ' . $user->getUsername() . ' was changed.' 'message' => 'The profile for ' . $user->getUsername() . ' was changed.'
]); ]);
return $this->displayUsers($users); return $this->redirectToRoute('app_admin_users');
} }
} }
\ No newline at end of file
...@@ -31,7 +31,7 @@ class ProfileController extends AbstractController ...@@ -31,7 +31,7 @@ class ProfileController extends AbstractController
$doctrine->getManager()->flush(); $doctrine->getManager()->flush();
return $this->index(); return $this->redirectToRoute('app_profile');
} }
...@@ -59,6 +59,6 @@ class ProfileController extends AbstractController ...@@ -59,6 +59,6 @@ class ProfileController extends AbstractController
'title' => 'Passwort changed', 'title' => 'Passwort changed',
'message'=> 'Your password was changed.' 'message'=> 'Your password was changed.'
]); ]);
return $this->index(); return $this->redirectToRoute('app_profile');
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment