You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: handle relative next param locally after login/registration
When a user navigates to a protected SPA route while logged out, the
authenticatedLoader redirects to /authn/login?next=%2Fsome-path. Previously,
this relative next param was sent to the LMS backend, which resolved it
against itself and returned an absolute LMS URL — causing a full page
navigation away from the SPA shell.
Now, when next starts with /, it is stripped from the API payload and
handled locally: after login/registration succeeds, fetchAuthenticatedUser
refreshes the auth cache so authenticatedLoader allows the target route,
RedirectLogistration uses <Navigate> for SPA navigation, and
hydrateAuthenticatedUser runs in the background to populate the full
user profile (avatar, etc.) in the header.
Also applies the same relative-path SPA navigation pattern to
ProgressiveProfilingPageModal and replaces the hardcoded LMS dashboard
fallback in the registration API with getUrlByRouteRole for consistency.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments