mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The earlier #6512 fix covered only the useraccounts password/register flow (onSubmitHook). OAuth / OIDC logins use the redirect login style and do not go through onSubmitHook: after returning from the identity provider the user is logged in but still on the sign-in route, which renders only the language selector ("Vaihda kieltä") until a manual page reload. Add a client Accounts.onLogin handler (fires for every login method after Meteor.userId() is set) that navigates to All Boards when the current route is an auth route. Guarded to auth routes so an auto-login on a deep-linked board URL is not redirected away, and it is a no-op after password login (onSubmitHook has already navigated). Thanks to xet7 ! Fixes #6512,