Skip to content

Commit a6de568

Browse files
authored
fix(tags): use forum description for meta description on tags homepage (#4557)
1 parent 103c9dd commit a6de568

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/tags/src/Content/Tags.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public function __invoke(Document $document, Request $request)
9292

9393
$defaultRoute = $this->settings->get('default_route');
9494
$document->title = $this->translator->trans('flarum-tags.forum.all_tags.meta_title_text');
95-
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.all_tags.meta_description_text');
95+
$document->meta['description'] = $this->settings->get('forum_description')
96+
?: $this->translator->trans('flarum-tags.forum.all_tags.meta_description_text');
9697
$document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children'));
9798
$document->canonicalUrl = $this->url->to('forum')->base().($defaultRoute === '/tags' ? '' : $request->getUri()->getPath());
9899
$document->payload['apiDocument'] = $apiDocument;

0 commit comments

Comments
 (0)