From 82a660fdbe01c14154a71844a8ae2e13ba2971fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Jan 2022 11:50:47 +0100 Subject: [PATCH] Add missing JSON encoding of the PAGE_TITLE in `ampArticle.tpl` This does not need to be fixed in any current branch, because the broken-ness of `|encodeJSON` will result in broken metadata one way or another. (cherry picked from commit bba7f1706e30761e55954a5a4be569e5bb55a6c4) --- com.woltlab.wcf/templates/ampArticle.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/ampArticle.tpl b/com.woltlab.wcf/templates/ampArticle.tpl index c33e738140..6d6dd15fe9 100644 --- a/com.woltlab.wcf/templates/ampArticle.tpl +++ b/com.woltlab.wcf/templates/ampArticle.tpl @@ -16,7 +16,7 @@ }, "publisher": { "@type": "Organization", - "name": "{PAGE_TITLE|language}", + "name": {@PAGE_TITLE|language|json}, "logo": { "@type": "ImageObject", "url": {@$__wcf->getStyleHandler()->getStyle()->getPageLogo()|json}, -- 2.20.1