From e554a80589e7af56b7fb0e47cb3c276a3e2619e5 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 30 Oct 2023 20:01:01 +0000 Subject: [PATCH] Handle redirect from after POST request from backup restore Signed-off-by: snipe --- routes/web.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/web.php b/routes/web.php index 0aacf85135..635cdbcb94 100644 --- a/routes/web.php +++ b/routes/web.php @@ -224,6 +224,11 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser [SettingsController::class, 'postUploadBackup'] )->name('settings.backups.upload'); + // Handle redirect from after POST request from backup restore + Route::get('/restore/{filename?}', function () { + return redirect(route('settings.backups.index')); + }); + Route::get('/', [SettingsController::class, 'getBackups'])->name('settings.backups.index'); });