Skip to content

Commit

Permalink
Fix broken page when accessing workspace without any specific page (/…
Browse files Browse the repository at this point in the history
…worksace)
  • Loading branch information
jcarlosn committed Feb 21, 2024
1 parent 885eefb commit ef44565
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/next/pages/workspace/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Head from 'next/head'
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';

export default function Page(props: any) {
const { replace } = useRouter();
useEffect(() => replace('/'), [])

return (
<>
<Head>
<title>Protofy</title>
</Head>
</>
)
}

0 comments on commit ef44565

Please sign in to comment.