Skip to content

Commit b97a137

Browse files
committed
fix individual posts route
1 parent a9f1901 commit b97a137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/LlmsTxtServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function registerIndividualPostRoutes(): void
8080
{
8181
if (config('llms-txt.individual_posts.enabled', false)) {
8282
$postTypesPattern = implode('|', config('llms-txt.individual_posts.post_types', ['post', 'page']));
83-
Route::get("({$postTypesPattern})-{slug}.txt", [LlmsTxtController::class, 'individual'])
83+
Route::get("{postType}-{slug}.txt", [LlmsTxtController::class, 'individual'])
8484
->where('postType', $postTypesPattern)
8585
->where('slug', '.+');
8686
}

0 commit comments

Comments
 (0)