mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 00:10:02 -05:00
(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:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user