LauraXia123 commented on code in PR #11812:
URL: https://github.com/apache/gravitino/pull/11812#discussion_r3567785388
##########
web-v2/web/src/app/page.js:
##########
@@ -19,6 +19,16 @@
'use client'
+import { useEffect } from 'react'
+
+import { useRouter } from 'next/navigation'
+
export default function Home() {
- return <></>
+ const router = useRouter()
+
+ useEffect(() => {
+ router.replace('/metalakes')
Review Comment:
In the session provider, if there is a token, it should redirect to
goToMetalakeListPage(); if there is no token, it should go to the Login page.
It should not default to redirecting to the Metalake page here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]