GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(profile): return email footer links after login by Storypapst · Pull Request #1572 · OpenResilienceInitiative/ORISO-Frontend

Conversation

@Storypapst

@Storypapst Storypapst commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

What happened

A recipient can follow an email footer link while signed out. The app currently sends them to login, then opens the ordinary start page or their last session, so the email setting they asked for is lost. This PR keeps only the exact email settings route and its ?mail= occasion through login. After a successful sign-in, the app opens that same switch.

Refs #872. Parent #828. This PR targets dev and stacks on the reachable settings route in PR #1571; its diff will shrink after #1571 merges. It does not change ordinary login, group links or remembered session navigation.

What we need to do

Review the redirect boundary and verify the flow with a received mail on deployed Dev. UserService PR #1298 and the Keycloak theme source in Frontend PR #1568 / Keycloak PR #43 correct the old footer paths. Mail suppression by the switch is a separate sender/Dev acceptance gate.

How to test it quickly

  1. Open /profile/einstellungen/email?mail=tagesuebersicht in a signed-out browser. Expect /login?returnTo=... without losing the occasion.
  2. Sign in. Expect /profile/einstellungen/email?mail=tagesuebersicht with the daily digest switch highlighted.
  3. Open an ordinary login or a group link. Expect the existing destination. Try an external returnTo; it must be ignored.

For developers — local verification at 7152c6d7 (skip if you only need the browser path):

Node 24.15.0; local only
Full unit suite: 537 files / 5,782 tests passed
ESLint + TypeScript, Stylelint and production build/postbuild host check: passed
Focused route/login tests: 43 passed
Only /profile/einstellungen/email is accepted as returnTo; other routes and external origins are rejected. Extra query values are dropped.
No deployed Dev browser or received-mail check was run.

The destination panel is shown in the #1571 visual evidence. This PR changes navigation rather than that panel's appearance.

What else I found

The email settings link in the notification dialog is now sourced from the same local route constant. The renderer and Keycloak path corrections are in the linked PRs; no one PR alone establishes the end-to-end flow.

Reviewer test plan

  • Follow an occasion-specific email footer link while signed out and confirm the same switch after login.
  • Repeat while already signed in, including a 320px and 375px browser width.
  • Confirm external or non-settings returnTo values never redirect outside the app or to another internal route.
  • Confirm normal login, group links and remembered session routes still work.
  • Turn off the indicated switch and trigger the same real mail on deployed Dev; confirm it is suppressed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Storypapst added 2 commits September 26, 2026 08:14
@Storypapst
feat(profile): expose email preferences on dev route
64a30b9
@Storypapst
fix(profile): return email footer links after login
7152c6d
@Storypapst
Storypapst requested review from Shirloin and shanzaeimran September 26, 2026 06:29
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 94 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: OpenResilienceInitiative/ORISO-Frontend/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 2ee9f78f-0c2c-4950-b573-cac17a32b865

📥 Commits

Reviewing files that changed from the base of the PR and between cc34815 and 7152c6d.

⛔ Files ignored due to path filters (3)
  • docs/storybook/issue-871-email-preferences/01-before-notification-dialog.png is excluded by !**/*.png and included by none
  • docs/storybook/issue-871-email-preferences/02-after-notification-dialog.png is excluded by !**/*.png and included by none
  • docs/storybook/issue-871-email-preferences/03-after-email-matrix.png is excluded by !**/*.png and included by none
📒 Files selected for processing (13)
  • src/components/app/AuthenticatedApp.tsx
  • src/components/login/Login.tsx
  • src/components/profile/EmailNotifications/index.tsx
  • src/components/profile/EmailNotifications/notificationMatrix.ts
  • src/components/profile/NotificationSettings/NotificationConfigDialog.stories.tsx
  • src/components/profile/NotificationSettings/NotificationConfigDialog.test.tsx
  • src/components/profile/NotificationSettings/NotificationConfigDialog.tsx
  • src/components/profile/profileSettings.routes.test.ts
  • src/components/profile/profileSettings.routes.ts
  • src/components/registration/autoLogin.test.ts
  • src/components/registration/autoLogin.ts
  • src/utils/emailPreferencesReturn.test.ts
  • src/utils/emailPreferencesReturn.ts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 26, 2026
Footer "Benachrichtigungen abbestellen" must resolve to the setting for the mail it appeared in #872
Closed
EPIC: transactional e-mails — one design system across every sending path #828
Open
Align handover email copy with advice seeker and incoming counsellor #1592
Merged
Profile: notification settings for the full event list, split advice seeker vs counsellor #871
Closed
@Storypapst
Storypapst requested a review from shazia-k September 30, 2026 13:30
@Storypapst Storypapst added this to ORISO Roadmap Oct 1, 2026
@shazia-k shazia-k closed this pull request by merging all changes into dev in 2cc042b Oct 1, 2026
@shazia-k
shazia-k deleted the feat/872-email-preference-login-return branch October 1, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shanzaeimran shanzaeimran Awaiting requested review from shanzaeimran
@Shirloin Shirloin Awaiting requested review from Shirloin
@shazia-k shazia-k Awaiting requested review from shazia-k

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

ORISO Roadmap
Status: No status

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Storypapst @shazia-k
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.