Aktuelles: robots preko setRobots, da ne ostane dvojni meta robots

This commit is contained in:
folx bot
2026-08-27 07:40:05 +02:00
parent 3d1918c2cc
commit a218e76f9d
+1 -1
View File
@@ -619,10 +619,10 @@ export function serveStatic(app: Express) {
template = stripExistingMeta(template);
const aktTitle = "Aktuelles | Folx Music Television";
template = template.replace(/<title>[^<]*<\/title>/, [
'<meta name="robots" content="noindex, follow" />',
`<link rel="canonical" href="${canonicalBase}/aktuelles" />`,
`<title>${escapeHtml(aktTitle)}</title>`,
].join("\n "));
template = setRobots(template, "noindex, follow");
res.status(200).set({ "Content-Type": "text/html" }).end(template);
return;
}