Skip to content

Commit 39bae6a

Browse files
🐛 ensure the custom title is added in meta tags
1 parent f73d361 commit 39bae6a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

server/utils/boot/MetaGenerator.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,19 @@ class MetaGenerator {
181181
async #fetchConfg() {
182182
this.#log(`fetching custom meta tag settings...`);
183183
const { SystemSettings } = require("../../models/systemSettings");
184-
const customTitle = await SystemSettings.getValueOrFallback(
184+
185+
let customTitle = await SystemSettings.getValueOrFallback(
185186
{ label: "meta_page_title" },
186187
null
187188
);
189+
190+
if (!customTitle) {
191+
customTitle = await SystemSettings.getValueOrFallback(
192+
{ label: "custom_app_name" },
193+
null
194+
);
195+
}
196+
188197
const faviconURL = await SystemSettings.getValueOrFallback(
189198
{ label: "meta_page_favicon" },
190199
null

0 commit comments

Comments
 (0)