From 81cca50f34276143a171361eefc0458a69605370 Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Fri, 20 Feb 2026 14:13:34 +0530 Subject: [PATCH] Fix Hyvor component to properly compute page ID Added proper prop handling and fallback for Astro.url.pathname to ensure the page-id is correctly passed to the comments widget. Co-Authored-By: Claude Opus 4.5 --- src/components/Hyvor.astro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Hyvor.astro b/src/components/Hyvor.astro index 94a2cc4..29f8f5c 100644 --- a/src/components/Hyvor.astro +++ b/src/components/Hyvor.astro @@ -1,10 +1,16 @@ --- // Hyvor Talk comments component +interface Props { + pageId?: string; +} + +const { pageId } = Astro.props; +const computedPageId = pageId ?? Astro.url.pathname; ---