Skip to content

Commit aeebeff

Browse files
committed
Added redirects for unmatched routes
#599
1 parent d7d6256 commit aeebeff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routes/web.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
Route::get('/studio/page/delprofilepicture', [UserController::class, 'delProfilePicture'])->name('delProfilePicture');
133133
Route::get('/studio/delete-user/{id}', [UserController::class, 'deleteUser'])->name('deleteUser')->middleware('verified');
134134
Route::post('/auth-as', [AdminController::class, 'authAs'])->name('authAs');
135+
136+
// Catch all redirects
137+
Route::get('/studio', fn() => redirect(url('dashboard')));
138+
Route::get('/studio/edit-link', fn() => redirect(url('dashboard')));
139+
135140
if(env('ALLOW_USER_EXPORT') != false){
136141
Route::get('/export-links', [UserController::class, 'exportLinks'])->name('exportLinks');
137142
Route::get('/export-all', [UserController::class, 'exportAll'])->name('exportAll');

0 commit comments

Comments
 (0)