Skip to content

fix(web-runtime): cache embed query params across config reloads#1977

Merged
JammingBen merged 2 commits intoopencloud-eu:mainfrom
dschmidt:fix/embed-config-query-param-loss
Feb 17, 2026
Merged

fix(web-runtime): cache embed query params across config reloads#1977
JammingBen merged 2 commits intoopencloud-eu:mainfrom
dschmidt:fix/embed-config-query-param-loss

Conversation

@dschmidt
Copy link
Contributor

@dschmidt dschmidt commented Feb 13, 2026

Description

announceConfiguration is called twice: once during bootstrap and again when userContextReady fires. By the second call the delegated-auth callback has navigated away from the initial /?embed=true&… URL, so getQueryParam('embed') returns null and embed mode is silently disabled.

Cache the derived embed config on the first call and return the snapshot on subsequent invocations.

Related Issue

  • Fixes <issue_link>

How Has This Been Tested?

It's hard to setup a reproduction environment for this and also it's very late ... let's talk about it tomorrow

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

announceConfiguration is called twice: once during bootstrap and again
when userContextReady fires. By the second call the delegated-auth
callback has navigated away from the initial /?embed=true&… URL, so
getQueryParam('embed') returns null and embed mode is silently disabled.

Cache the derived embed config on the first call and return the snapshot
on subsequent invocations.
@dschmidt dschmidt force-pushed the fix/embed-config-query-param-loss branch from bc87da8 to 1b9fc46 Compare February 16, 2026 13:55
@dschmidt dschmidt changed the base branch from next-release/stable-4.2 to main February 16, 2026 13:55
@dschmidt dschmidt force-pushed the fix/embed-config-query-param-loss branch from 1b9fc46 to 326e279 Compare February 16, 2026 13:56
Verify that embed query params survive the internal auth redirect
when using delegated authentication. The test sets up a parent page
that embeds the app in an iframe with delegated auth and asserts
that embed mode UI remains active after authentication completes.
@dschmidt dschmidt force-pushed the fix/embed-config-query-param-loss branch from 326e279 to 158edb7 Compare February 16, 2026 16:38
@JammingBen JammingBen merged commit 034a693 into opencloud-eu:main Feb 17, 2026
29 checks passed
@openclouders openclouders mentioned this pull request Feb 17, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants