Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Feb 6, 2025
1 parent cc3415d commit cb927c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FilamentErrorPagesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable;

class FilamentErrorPagesServiceProvider extends PackageServiceProvider
Expand Down Expand Up @@ -103,7 +102,7 @@ protected function registerCustomErrorHandler(): void
filament()->getCurrentPanel()->getTenantModel() ? $tenantId : null
);

// Handle NotFoundHttpException for panels
// If the previous request was not redirected to the error page, redirect to the error page
if (! $isRedirected) {
// https://github.com/livewire/livewire/discussions/4905#discussioncomment-7115155
return (new Redirector(App::get('url')))->route(
Expand Down

0 comments on commit cb927c8

Please sign in to comment.