mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-28 10:44:30 +01:00
Add /extension path for extension installation (#3011)
This commit is contained in:
17
documentation/src/pages/extension.tsx
Normal file
17
documentation/src/pages/extension.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user