Skip to content

Commit

Permalink
fix: ignore errors for blog SEO URL route
Browse files Browse the repository at this point in the history
  • Loading branch information
7underlines committed Dec 21, 2024
1 parent 8624fd2 commit 268e8c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Content/Blog/BlogSeoUrlRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class BlogSeoUrlRoute implements SeoUrlRouteInterface
{
public const ROUTE_NAME = 'werkl.frontend.blog.detail';
public const DEFAULT_TEMPLATE = 'blog/{{ entry.blogCategories.first.translated.name|lower }}/{{ entry.translated.title|lower }}';

/**
* @var BlogEntriesDefinition
Expand All @@ -29,7 +30,8 @@ public function getConfig(): SeoUrlRouteConfig
return new SeoUrlRouteConfig(
$this->definition,
self::ROUTE_NAME,
'blog/{{ entry.blogCategories.first.translated.name|lower }}/{{ entry.translated.title|lower }}'
self::DEFAULT_TEMPLATE,
true
);
}

Expand Down

0 comments on commit 268e8c4

Please sign in to comment.