Skip to content

Commit 5e9dbe7

Browse files
committed
Reorder routes to make sure seo tag routes are loaded before page routes to avoid using page routes for seo tag routes.
1 parent 4346147 commit 5e9dbe7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

config/filament-flexible-content-block-pages.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
'navigation_sort' => 5,
154154
],
155155

156+
157+
'tags' => [
158+
'navigation_sort' => 20,
159+
],
160+
156161
/*
157162
|--------------------------------------------------------------------------
158163
| Tag Pages Configuration
@@ -199,8 +204,4 @@
199204
'show_type_counts' => true,
200205
],
201206
],
202-
203-
'tags' => [
204-
'navigation_sort' => 20,
205-
],
206207
];

src/Routes/AbstractPageRouteHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ abstract class AbstractPageRouteHelper implements HandlesPageRoutes
2222

2323
public function defineRoutes(): void
2424
{
25-
$this->definePageRoutes();
26-
2725
if (FilamentFlexibleContentBlockPages::config()->areTagPagesEnabled()) {
2826
$this->defineSeoTagRoutes();
2927
}
28+
29+
$this->definePageRoutes();
3030
}
3131

3232
public function definePageRoutes(): void

0 commit comments

Comments
 (0)