Merge branch 'develop' into trunk

This commit is contained in:
System User 2025-07-18 17:06:43 +02:00
commit 9854c03492

View file

@ -90,9 +90,11 @@ Breadcrumbs::for(
);
Breadcrumbs::for(
sprintf('%s.news.show', app()->currentLocale()),
function (Generator $trail, News $publishedNews) {
function (Generator $trail, News|null $publishedNews = null) {
$trail->parent(sprintf('%s.home', app()->currentLocale()));
$trail->push($publishedNews->title, route('news.show', $publishedNews));
if (!is_null($publishedNews)) {
$trail->push($publishedNews->title, route('news.show', $publishedNews));
}
}
);