File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export function AccountButton(props: {
104
104
variant = "ghost"
105
105
className = "justify-start px-3 text-muted-foreground text-sm hover:text-foreground"
106
106
>
107
- < Link href = "/" > Home Page</ Link >
107
+ < Link href = "/home " > Home Page</ Link >
108
108
</ Button >
109
109
110
110
{ props . account && (
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ export async function middleware(request: NextRequest) {
48
48
// remove '/' in front and then split by '/'
49
49
const paths = pathname . slice ( 1 ) . split ( "/" ) ;
50
50
51
+ // if it's the homepage and we have an auth cookie, redirect to the dashboard
52
+ if ( paths . length === 1 && paths [ 0 ] === "" && authCookie ) {
53
+ return redirect ( request , "/team" ) ;
54
+ }
55
+
51
56
// if the first section of the path is a number, check if it's a valid chain_id and re-write it to the slug
52
57
const possibleChainId = Number ( paths [ 0 ] ) ;
53
58
You can’t perform that action at this time.
0 commit comments