FEATURE: fix redirecting after edit to be more logical

This commit is contained in:
Michal Kváček
2016-09-27 21:48:06 +02:00
parent 8533c8cdc6
commit e0357d0003
4 changed files with 12 additions and 2 deletions
@@ -189,7 +189,7 @@ class EditContent extends Controller
// something was changed, inform user
return redirect()
->route('content.edit', ['id' => $page->id])
->route('content.overview')
->with('success', trans('admin/contents.successfullyEdited'));
}
@@ -83,7 +83,7 @@ class EditUser extends Controller
Event::fire(new EditUserEvent($user));
return redirect()
->route('users.detail', ['id' => $id])
->back()
->with('success', trans('admin/userManagement.userSuccessfullyEdited'));
}
}