From e55d47cec4bdf709c0b14be2c931f9ce3cca3749 Mon Sep 17 00:00:00 2001 From: simeydotme Date: Tue, 5 Sep 2023 00:28:48 +0800 Subject: [PATCH] why isnt that working? --- src/components/Reusable/Option.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Reusable/Option.astro b/src/components/Reusable/Option.astro index 1c70f6d..d9e3c39 100644 --- a/src/components/Reusable/Option.astro +++ b/src/components/Reusable/Option.astro @@ -14,9 +14,9 @@ const propTypeString = Array.isArray(propType) ? propType.join(" | ") : propType const isRender = propName && propType && defaultValue; // fix up relative links due to pathing issues in vite/astro -let usableLink = link?.replace(/^\.?\//, ""); +let usableLink = link?.replace(/^\.?\//, "../"); if ( !link?.match(/^\.?\//) ) { - usableLink = `examples/${link}` + usableLink = `../examples/${link}` } ---