mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: render page title on tag routes (#24474)
This commit is contained in:
parent
aff3d36f35
commit
a48c43dfae
@ -170,26 +170,26 @@ export default class TagShowRoute extends DiscourseRoute {
|
|||||||
const filterText = I18n.t(
|
const filterText = I18n.t(
|
||||||
`filters.${this.navMode.replace("/", ".")}.title`
|
`filters.${this.navMode.replace("/", ".")}.title`
|
||||||
);
|
);
|
||||||
const controller = this.controllerFor(this.controllerName);
|
const model = this.currentModel;
|
||||||
|
|
||||||
if (controller.tag?.id) {
|
if (model?.tag?.id) {
|
||||||
if (controller.category) {
|
if (model.category) {
|
||||||
return I18n.t("tagging.filters.with_category", {
|
return I18n.t("tagging.filters.with_category", {
|
||||||
filter: filterText,
|
filter: filterText,
|
||||||
tag: controller.tag.id,
|
tag: model.tag.id,
|
||||||
category: controller.category.name,
|
category: model.category.name,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return I18n.t("tagging.filters.without_category", {
|
return I18n.t("tagging.filters.without_category", {
|
||||||
filter: filterText,
|
filter: filterText,
|
||||||
tag: controller.tag.id,
|
tag: model.tag.id,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (controller.category) {
|
if (model.category) {
|
||||||
return I18n.t("tagging.filters.untagged_with_category", {
|
return I18n.t("tagging.filters.untagged_with_category", {
|
||||||
filter: filterText,
|
filter: filterText,
|
||||||
category: controller.category.name,
|
category: model.category.name,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return I18n.t("tagging.filters.untagged_without_category", {
|
return I18n.t("tagging.filters.untagged_without_category", {
|
||||||
|
Loading…
Reference in New Issue
Block a user