diff --git a/lib/PearlBee/Model/Schema/Result/Category.pm b/lib/PearlBee/Model/Schema/Result/Category.pm index a9175f0e..1ba25a21 100644 --- a/lib/PearlBee/Model/Schema/Result/Category.pm +++ b/lib/PearlBee/Model/Schema/Result/Category.pm @@ -165,7 +165,7 @@ sub safe_cascade_delete { } sub uri { - '/posts/category/' . $_[0]->slug . ( $PearlBee::is_static && '.html ' ); + '/category/' . $_[0]->slug . ( $PearlBee::is_static && '.html ' ); } sub edit_uri { '/dashboard/categories/edit/' . $_[0]->id } diff --git a/lib/PearlBee/Model/Schema/Result/Tag.pm b/lib/PearlBee/Model/Schema/Result/Tag.pm index 9f8192a2..9b188701 100644 --- a/lib/PearlBee/Model/Schema/Result/Tag.pm +++ b/lib/PearlBee/Model/Schema/Result/Tag.pm @@ -97,7 +97,7 @@ __PACKAGE__->many_to_many( "posts", "post_tags", "post" ); # You can replace this text with custom code or comments, and it will be preserved on regeneration -sub uri { '/posts/tag/' . $_[0]->slug . ( $PearlBee::is_static && '.html ' ) } +sub uri { '/tag/' . $_[0]->slug . ( $PearlBee::is_static && '.html ' ) } sub edit_uri { '/dashboard/tags/edit/' . $_[0]->id } diff --git a/lib/PearlBee/Model/Schema/Result/User.pm b/lib/PearlBee/Model/Schema/Result/User.pm index 20a55a47..744bf2c1 100644 --- a/lib/PearlBee/Model/Schema/Result/User.pm +++ b/lib/PearlBee/Model/Schema/Result/User.pm @@ -336,7 +336,7 @@ sub allow { } sub uri { - '/posts/user/' . $_[0]->username . ( $PearlBee::is_static && '.html ' ); + '/author/' . $_[0]->username . ( $PearlBee::is_static && '.html ' ); } 1;