@@ -8,7 +8,7 @@ const redirects = {
|
||||
'backend-system': '/docs/plugins/new-backend-system',
|
||||
};
|
||||
const fallback = '/docs';
|
||||
const target = redirects[window.location.search.slice(1)] || fallback;
|
||||
const target = redirects[global.window.location.search.slice(1)] || fallback;
|
||||
|
||||
export default function Link() {
|
||||
return <Redirect to={target} />;
|
||||
|
||||
Reference in New Issue
Block a user