mirror of
https://github.com/flarum/core.git
synced 2025-08-15 12:54:47 +02:00
@@ -88,7 +88,7 @@ export default class TagsPage extends Page {
|
||||
config(...args) {
|
||||
super.config(...args);
|
||||
|
||||
app.setTitle(app.translator.trans('flarum-tags.forum.meta.tags_title'));
|
||||
app.setTitle(app.translator.trans('flarum-tags.forum.all_tags.meta_title_text'));
|
||||
app.setTitleCount(0);
|
||||
}
|
||||
}
|
||||
|
@@ -84,7 +84,7 @@ class Tag
|
||||
if ($tag->description) {
|
||||
$document->meta['description'] = $tag->description;
|
||||
} else {
|
||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tag_description', ['{tag}' => $tag->name]);
|
||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.tag.meta_description_text', ['{tag}' => $tag->name]);
|
||||
}
|
||||
$document->content = $this->view->make('tags::frontend.content.tag', compact('apiDocument', 'page', 'tag'));
|
||||
$document->payload['apiDocument'] = $apiDocument;
|
||||
|
@@ -91,8 +91,8 @@ class Tags
|
||||
];
|
||||
});
|
||||
|
||||
$document->title = $this->translator->trans('flarum-tags.forum.meta.tags_title');
|
||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tags_description');
|
||||
$document->title = $this->translator->trans('flarum-tags.forum.all_tags.meta_title_text');
|
||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.all_tags.meta_description_text');
|
||||
$document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children'));
|
||||
$document->canonicalUrl = $defaultRoute === '/tags' ? $this->url->to('forum')->base() : $request->getUri()->withQuery('');
|
||||
|
||||
|
Reference in New Issue
Block a user