Add /extension path for extension installation (#3011)

This commit is contained in:
Joah Gerstenberg
2025-07-01 08:35:30 -05:00
committed by GitHub
parent e49985e095
commit 92abdb9d18

View File

@@ -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 (
<div style={{ padding: '2rem', textAlign: 'center' }}>
Redirecting to Goose...
</div>
);
}