FIX: redirect to directory detail after file delete

This commit is contained in:
Michal Kváček
2016-04-20 19:23:26 +02:00
parent 3a6211c875
commit 93bafee2e7
@@ -82,10 +82,11 @@ class EditUploadedFile extends Controller
return $this->fileNotFound(); return $this->fileNotFound();
} }
$directoryId = $file->directory_id;
$file->delete(); $file->delete();
return redirect() return redirect()
->route('upload.overview') ->route('upload.overview', ['id' => $directoryId])
->with('success', trans('admin/fileManager.fileDeleted')); ->with('success', trans('admin/fileManager.fileDeleted'));
} }