diff --git a/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts b/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts index 843bbbf98..ba63696a5 100644 --- a/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts +++ b/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts @@ -10,7 +10,7 @@ export async function generateFeedMetadata(filter: string, tag: string) { let canonical = `${defaults.base}/${filter}`; let rss = ""; - if (tag.startsWith("%40")) { + if (tag?.startsWith("%40")) { title = `${tag.replace("%40", "@")} ${filter} on decentralized web – Ecency`; description = i18next.t("entry-index.description-user-feed", { u: tag }); } else if (tag) {