Skip to content

Commit

Permalink
Fix web route fallback url handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimot24 committed Nov 13, 2024
1 parent ef901fc commit c733b06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}


Route::any('/{slug?}/{args?}', function ($slug = "", $args = null, Request $request, Container $container) use ($_THEME_NAME) {
Route::any('/{slug?}/{args?}', function ($slug = "", $args = null) use ($_THEME_NAME) {

try {

Expand Down Expand Up @@ -76,9 +76,9 @@
throw $e;
}
} catch (Exception $e) {
$handler = new \App\Exceptions\WebsiteExceptionHandler($container);
$handler = new \App\Exceptions\WebsiteExceptionHandler(app());

return $handler->render($request, $e);
return $handler->render(request(), $e);
}
})->where('args', '(.*)');
}

0 comments on commit c733b06

Please sign in to comment.