(Fix) Torrent Deletion Redirect

- closes #244
- cannot redirect back to a torrent the doesn’t exist anymore when
deleting from the torrent details page
This commit is contained in:
HDVinnie
2018-03-30 08:55:23 -04:00
parent 52c5dc1df8
commit 882bc14d06
+1 -1
View File
@@ -944,7 +944,7 @@ class TorrentController extends Controller
}
Torrent::withAnyStatus()->where('id', $id)->delete();
return redirect()->back()->with(Toastr::success('Torrent Has Been Deleted!', 'Yay!', ['options']));
return redirect('/torrents')->with(Toastr::success('Torrent Has Been Deleted!', 'Yay!', ['options']));
}
} else {
$errors = "";