diff --git a/server/static.ts b/server/static.ts index 1759ff2..8133f68 100644 --- a/server/static.ts +++ b/server/static.ts @@ -619,10 +619,10 @@ export function serveStatic(app: Express) { template = stripExistingMeta(template); const aktTitle = "Aktuelles | Folx Music Television"; template = template.replace(/[^<]*<\/title>/, [ - '<meta name="robots" content="noindex, follow" />', `<link rel="canonical" href="${canonicalBase}/aktuelles" />`, `<title>${escapeHtml(aktTitle)}`, ].join("\n ")); + template = setRobots(template, "noindex, follow"); res.status(200).set({ "Content-Type": "text/html" }).end(template); return; }