From d45f253c000e834db584fed89ddb541c09f466c7 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Mon, 14 Sep 2026 18:58:28 -0400 Subject: [PATCH] fix: normalize cononical --- SharpbinV3.Client/src/routes/[id]/+page.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SharpbinV3.Client/src/routes/[id]/+page.svelte b/SharpbinV3.Client/src/routes/[id]/+page.svelte index 0148811..f29d446 100644 --- a/SharpbinV3.Client/src/routes/[id]/+page.svelte +++ b/SharpbinV3.Client/src/routes/[id]/+page.svelte @@ -100,6 +100,9 @@ let highlightRequestId = 0; let ignoreExternalMediaWarning = false; let iconsOnly = $state(false); + const canonicalUrl = $derived( + data.paste ? new URL(`/${data.paste.id}`, data.url).href : undefined + ); let scrollY = $state(0); @@ -590,14 +593,14 @@ name="robots" content={data.paste.visibility === 0 ? 'index, follow' : 'noindex, nofollow'} /> - + {#if data.paste.author} {/if} - + {#if pasteImageUrl}