-
Notifications
You must be signed in to change notification settings - Fork 118
Description
Even if I’m already logged in at https://cloud.umami.is/, everything works fine when I visit that URL directly.
However, if I click the Log in button in the navbar (which links to https://cloud.umami.is/login?ref=umami-nav-header —
website/src/app/(website)/Header.tsx
Line 85 in b3a1671
| <Link href={`https://cloud.umami.is/login${query}`} data-umami-event="login-button-header"> |
I’m asked to re-enter my credentials — even though I’m already logged in.
If I manually remove the /login part from the URL and press enter, I’m redirected to the dashboard — meaning the session is still active.
Proposal:
-
Add a login check
If the user is already logged in, automatically redirect them tohttps://cloud.umami.is/analytics.Note: Direct visiting the
/analyticsroute currently returns 404, and/analytics/eucauses a too many redirects error — two additional bugs that need attention. -
Simplify the login button
Update the button link to conditionally direct users:<Link href={`https://cloud.umami.is/${query}`} data-umami-event="login-button-header" >
This should correctly route users either to
/login(if not logged in) or to/analytics/[us|eu]/websites/(if authenticated).