Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After login when going back again login screen is coming #243

Open
shiv-2810 opened this issue Nov 9, 2023 · 2 comments · May be fixed by #273
Open

After login when going back again login screen is coming #243

shiv-2810 opened this issue Nov 9, 2023 · 2 comments · May be fixed by #273

Comments

@shiv-2810
Copy link

So, when we are login the site , 'https://tx.shadcn.com/dashboard', it opened with this url but when I am going again here "https://tx.shadcn.com" it is opening the homepage rather it should directly redirect to dashboard

@mofareedd
Copy link

Well, you can redirect logged in users from home page to dashboard.

go to (marketing/page.tsx):

import { getCurrentUser } from "@/lib/session"

const user = await getCurrentUser()
  if (user) {
    redirect('/dashboard')
  } 

@TusharBhatt1
Copy link

Hey I am working on this issue, will solve within an hour.
Thankyou

SergeWilfried added a commit to SergeWilfried/taxonomy that referenced this issue Feb 20, 2024
…emoved-and-added-profile-btn

removed the login btn after login and added a profile button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants