Skip to content

Commit 986c6a0

Browse files
committed
Patch: Redirection rules when system is not upgraded
1 parent 5d58c7b commit 986c6a0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/PanicHDServiceProvider.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,13 @@ public function boot()
307307
}
308308

309309
} else{
310-
Route::get('/tickets', function () {
310+
Route::get('/tickets/{params?}', function () {
311311
return redirect()->route('panichd.install.index');
312-
});
313-
Route::get('/tickets/{menu}', function () {
314-
return redirect()->route('panichd.install.index');
315-
});
316-
Route::get('/panichd/{menu}', function () {
312+
})->where('params', '(.*)');
313+
314+
Route::get('/panichd/{menu?}', function () {
317315
return redirect()->route('panichd.install.index');
318-
});
316+
})->where('menu', '(.*)');
319317
}
320318
}
321319

0 commit comments

Comments
 (0)