diff --git a/routes/web.php b/routes/web.php index 7f83e42..4eaf050 100644 --- a/routes/web.php +++ b/routes/web.php @@ -37,10 +37,9 @@ Route::middleware(['auth', 'verified', ResolveWorkspace::class]) // Bio page route — must be before the slug catch-all Route::get('/bio/{slug}', [BioPageController::class, 'show'])->name('bio.public'); -// Redirect service — handles slugs on main domain and custom domains -// Placed after all named routes so dashboard/profile etc. are not caught here +require __DIR__.'/auth.php'; + +// Redirect service — catch-all, must be last Route::get('/{slug}', RedirectController::class) ->where('slug', '[a-zA-Z0-9_-]+') ->name('redirect'); - -require __DIR__.'/auth.php';