diff --git a/apps/server/src/static/web.test.ts b/apps/server/src/static/web.test.ts index 86a4f1cb0..e4df86e91 100644 --- a/apps/server/src/static/web.test.ts +++ b/apps/server/src/static/web.test.ts @@ -151,9 +151,9 @@ describe("web app fallback classification", () => { expect(html).toContain(''); expect(html).toContain(''); expect(html).toContain(''); - expect(html).toContain(''); + expect(html).toContain(''); expect(html).toContain(''); - expect(html).toContain(''); + expect(html).toContain(''); }); it("escapes user-authored values so resume content cannot break out of the attribute", async () => { diff --git a/apps/server/src/static/web.ts b/apps/server/src/static/web.ts index 52485bb16..ce90774d5 100644 --- a/apps/server/src/static/web.ts +++ b/apps/server/src/static/web.ts @@ -224,7 +224,7 @@ async function createPublicResumeSeoMarkup(pathname: string, origin: string) { if (!meta) return null; const canonicalUrl = `${origin}/${username}/${slug}`; - const imageUrl = `${origin}/templates/jpg/${meta.template}.jpg`; + const imageUrl = `${origin}/opengraph/banner.jpg`; const pageTitle = escapeAttribute(`${meta.name} - Reactive Resume`); const title = escapeAttribute(meta.title); const description = escapeAttribute(meta.description); diff --git a/apps/web/src/routes/$username/$slug.tsx b/apps/web/src/routes/$username/$slug.tsx index a4b677364..f1b952302 100644 --- a/apps/web/src/routes/$username/$slug.tsx +++ b/apps/web/src/routes/$username/$slug.tsx @@ -30,7 +30,7 @@ export const Route = createFileRoute("/$username/$slug")({ const base = getCanonicalRootUrl(typeof window === "undefined" ? undefined : window.location.origin); const canonicalUrl = `${base}${params.username}/${params.slug}`; - const imageUrl = `${base}templates/jpg/${social.template}.jpg`; + const imageUrl = `${base}opengraph/banner.jpg`; return { meta: [