Skip to content

Commit

Permalink
Pluralize base route key
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 12, 2024
1 parent 9fba287 commit 5525c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PostAuthorPage extends InMemoryPage

public function __construct(PostAuthor $author)
{
parent::__construct("author/$author->username");
parent::__construct("authors/$author->username");
}

public function getBladeView(): string
Expand Down
4 changes: 2 additions & 2 deletions packages/framework/tests/Feature/DynamicAuthorPagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function testAuthorPagesAreGenerated()
'_posts/jane_post_1.md',
'_posts/jane_post_2.md',
'authors',
'author/mr_hyde',
'author/jane_doe',
'authors/mr_hyde',
'authors/jane_doe',
// 'author/user123',
// TODO: 'author/anonymous',
// TODO: 'author/guest',
Expand Down

0 comments on commit 5525c48

Please sign in to comment.