Skip to content

feat(feedback): show bookmark error page for saved WAYF URLs#2026

Open
kayjoosten wants to merge 2 commits into
mainfrom
feature/issue-1976-bookmark-error-page
Open

feat(feedback): show bookmark error page for saved WAYF URLs#2026
kayjoosten wants to merge 2 commits into
mainfrom
feature/issue-1976-bookmark-error-page

Conversation

@kayjoosten

Copy link
Copy Markdown
Contributor

Summary

  • Adds /authentication/feedback/bookmarked-page route to FeedbackController
  • RedirectToFeedbackPageExceptionListener detects ?feedback=bookmark on a MissingParameterException and redirects to the new route instead of the generic "no authentication request received" page
  • Translations added in EN, NL, and PT

Context

Follow-up of #1973 / PR #1987. When eb.hide_bookmarkable_url is enabled, the JS replaces ?SAMLRequest=… with ?feedback=bookmark in the address bar. If the user bookmarks that URL and revisits it, they now see a specific, user-friendly error instead of a generic one.

Closes #1976

Test plan

  • Unit suite passes (phpunit --testsuite=unit)
  • Behat scenario in HideBookmarkableUrl.feature passes
  • Manually visit /authentication/idp/single-sign-on?feedback=bookmark → redirects to /authentication/feedback/bookmarked-page → shows "This page no longer exists"

@kayjoosten kayjoosten changed the base branch from main to feature/1973-hide-url-in-bar June 16, 2026 07:53
@kayjoosten kayjoosten force-pushed the feature/issue-1976-bookmark-error-page branch from a4c62fc to 7d74bcf Compare June 16, 2026 07:56
Base automatically changed from feature/1973-hide-url-in-bar to main June 22, 2026 07:26
@kayjoosten kayjoosten force-pushed the feature/issue-1976-bookmark-error-page branch 3 times, most recently from 8ca61f7 to e27ca28 Compare June 22, 2026 12:39
When the hide_bookmarkable_url feature is enabled, JS replaces the WAYF
URL (containing SAMLRequest) with ?feedback=bookmark via history.replaceState.
Visiting that bookmarked URL now shows a dedicated error page instead of a
generic missing-parameter error.

- Add bookmarked-page feedback route and error page
- Gate hideBookmarkableUrl JSON config value behind eb.hide_bookmarkable_url flag
- Handle ?feedback=bookmark redirect in singleSignOnAction before SAML
  validation (replaces smelly exception-listener query-param inspection)
- Wire Wayf Twig extension to FunctionalTestingFeatureConfiguration in ci env
- Add Behat scenarios covering the bookmark redirect and flag toggling

Closes #1976
@kayjoosten kayjoosten force-pushed the feature/issue-1976-bookmark-error-page branch from e27ca28 to c6b103f Compare June 22, 2026 12:43
@kayjoosten kayjoosten requested a review from johanib June 22, 2026 12:48
Comment thread src/OpenConext/EngineBlockBundle/Controller/IdentityProviderController.php Outdated
@kayjoosten kayjoosten force-pushed the feature/issue-1976-bookmark-error-page branch from c6b103f to 066c2cf Compare June 24, 2026 12:27
@kayjoosten kayjoosten requested a review from johanib June 24, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New feedback page for incorrectly bookmarked pages

2 participants