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

redirects to last selected team on login #3043

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

chelsey-g
Copy link

@chelsey-g chelsey-g commented Nov 6, 2024

For #3002,

  • Added useEffect to route users based on teamId cookie on login, directing to the team dashboard if present, or admin dashboard if not.
  • Updated handleTeamChange to set the teamId cookie and navigate accordingly.

Copy link

vercel bot commented Nov 6, 2024

@chelsey-g is attempting to deploy a commit to the umami-software Team on Vercel.

A member of the Team first needs to authorize it.

@chelsey-g chelsey-g changed the title redirects to last selected team on login #3002 redirects to last selected team on login Nov 6, 2024
@mikecao
Copy link
Collaborator

mikecao commented Nov 8, 2024

Can we use localStorage instead?

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 this pull request may close these issues.

2 participants