GeezerVison is showing github.com — Consultant deep links are swallowed by forced 2FA onboarding redirect · Issue #841 · OpenResilienceInitiative/ORISO-Frontend
Consultant deep links are swallowed by forced 2FA onboarding redirect #841Labels needs triageNew issue waiting for a maintainer to review, prioritize, and route. DescriptionStatus 2026-08-12 — delivered, awaiting test. A consultant without 2FA opening a deep link now lands on the requested view; the reminder appears on top of it instead of replacing it, and dismissing it once keeps it closed for the rest of the browser session (sessionStorage). PR #842, merged to pre-dev. Next step: test on Pre-Dev once the environment is deployed.
Summary
Consultants who have not completed 2FA setup cannot reach any view via a direct link (e-mail notification links, bookmarks, support handoffs): every full page load is redirected to the security settings and the 2FA setup dialog is force-opened. The requested view never opens, and the redirect repeats on every page load.
Severity: P0 / urgent — blocks consultants from reaching sessions via links and blocked automated E2E reproduction on 2026-08-01.
Environment: Pre-Dev (predev.oriso.org), frontend v2.0.1, consultant account without 2FA.
Steps to reproduce
- Log in as a consultant that has not set up 2FA.
- Open a session deep link, e.g.
/sessions/consultant/sessionView/session/2.
- The app redirects to
/profile/einstellungen/sicherheit and force-opens the 2FA setup dialog. The requested session never opens.
- Close the dialog and open the deep link again — the redirect and the dialog return on every page load.
The open dialog (twoFactorSetupDialog) also intercepts all pointer events, so the settings page underneath is unusable until the dialog is dismissed.
Expected
- Deep links open the requested view. A 2FA reminder may be shown on top, but the navigation target must be preserved.
- After the user dismisses the reminder once, it does not force-open again for the rest of the session.
Root cause
- Routing.tsx:118 mounts
<TwoFactorNag /> for every consultant.
- TwoFactorNag.tsx:42-46: once
todaysDate >= settings.twofactor.dateTwoFactorObligatory (already the case on Pre-Dev), the effect unconditionally calls openTwoFactorSettings() on mount, which navigates to /profile/einstellungen/sicherheit with state.openTwoFactor = true (useOpenTwoFactorSettings.ts) and discards the URL the user actually opened.
- The dismissal flag (
forceHideTwoFactorNag) is React component state only, so every full page load starts over — nothing is persisted per session.
This is the designed "obligatory" phase of the 2FA rollout acting as a hard gate; whether the gate should discard the navigation target and re-trigger on every load is the product question this issue raises. No evidence of a regression.
Suggested direction
Keep the obligatory nag, but (a) preserve the originally requested URL (e.g. redirect back after dialog close, or show the dialog on top of the requested view), and (b) persist the dismissal for the session (e.g. sessionStorage) so the dialog does not force-open on every load.
Reviewer test plan (to be ticked by the reviewer on Pre-Dev)
- Desktop: consultant without 2FA opens a session deep link → session view opens (reminder allowed, navigation preserved)
- Desktop: dismissing the 2FA dialog once keeps it closed for the rest of the browser session (including after a page reload)
- Mobile viewport (≤575px): same deep link opens the session view; dialog (if shown) is dismissible and stays dismissed
- Consultant with 2FA configured: deep links unaffected, no dialog
- Regression check: 2FA setup remains reachable and completable via Profil → Einstellungen → Sicherheit
Activitycoderabbitai commented on Aug 1, 2026
🔗 Related PRs
#533 - fix: allow consultants to disable 2FA [merged]
#570 - Align mandatory 2FA and the voice player with M3 [merged]
#842 - fix: keep deep-link target under obligatory 2FA nag, persist dismissal per session [merged]
#855 - fix(2fa): put the setup success card on the M3 scheme [open]
#919 - feat: opt-in 2FA toggle at registration [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord! Storypapst commented on Aug 24, 2026 CollaboratorAuthor More actions Verified as delivered: PR #842 ("fix: keep deep-link target under obligatory 2FA nag, persist dismissal per session"), merged to pre-dev, implements exactly the requested behavior: the obligatory 2FA nag now renders as a dismissible overlay on top of the requested view instead of redirecting, and dismissal persists per browser session via sessionStorage. All 7 items of the reviewer test plan were verified end-to-end on predev.oriso.org (deep link preserved, dismissal persists across reload, correct setup-flow navigation, new-session re-nag, mobile viewport, unaffected 2FA-configured consultants, regression check), with screenshots attached to the PR.
Moving to QA external Dev for external review. cc @BjoernLudwig
MetadataMetadataneeds triageNew issue waiting for a maintainer to review, prioritize, and route. StatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|