From 92abdb9d182569ac3c7a1dcf5dddc474e680dec6 Mon Sep 17 00:00:00 2001 From: Joah Gerstenberg Date: Tue, 1 Jul 2025 08:35:30 -0500 Subject: [PATCH] Add `/extension` path for extension installation (#3011) --- documentation/src/pages/extension.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 documentation/src/pages/extension.tsx diff --git a/documentation/src/pages/extension.tsx b/documentation/src/pages/extension.tsx new file mode 100644 index 00000000..d0891121 --- /dev/null +++ b/documentation/src/pages/extension.tsx @@ -0,0 +1,17 @@ +import React, { useEffect } from 'react'; +import { useLocation } from '@docusaurus/router'; + +export default function ExtensionRedirect(): JSX.Element { + const location = useLocation(); + + useEffect(() => { + const params = new URLSearchParams(location.search); + window.location.href = `goose://extension${params.toString() ? '?' + params.toString() : ''}`; + }, [location]); + + return ( +
+ Redirecting to Goose... +
+ ); +}