Skip to content

Commit a907390

Browse files
committed
client side redirect attempt
1 parent 6f36388 commit a907390

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

website/src/pages/releases.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7+
import Layout from '@theme/Layout';
8+
import React, {useEffect} from 'react';
79

810
const Releases = () => {
9-
location.href = '/docs/next/releases';
11+
useEffect(() => {
12+
location.href = '/docs/next/releases';
13+
}, []);
14+
15+
return (
16+
<Layout title="Releases" wrapperClassName="versions-page">
17+
<div style={{textAlign: 'center'}}>Redirecting...</div>
18+
</Layout>
19+
);
1020
};
1121

1222
export default Releases;

0 commit comments

Comments
 (0)