404 Error when routing custom pages

Hello everyone,

We have a member panel where we had to build many custom pages. For example, categories, category, posts, post and tags.

The categories have the following route: /categories
  • This works without any problems.
    The category has the following route: /categories/{category:slug}
    • This immediately returns a 404, but it is listed under php artisan route:list.
      The posts have the following route: /posts
      • This also works without any problems.
        The post has the following route: {category}/{post:slug}
        • This also works without any problems.
          The tags have the following route: tags/{tag:slug}
          • This immediately returns a 404, but it is listed under php artisan route:list.
hat is the quickest way to fix this?

PS: Does it make a difference if I create the custom pages as Livewire components with extends Filament\Pages\Page or if I use a custom page directly?
Solution
I solved it. The reason why it didn't work properly is the order in which you specify the pages in the provider.
Was this page helpful?