Skip to content

feat(nav): take sibling product addresses from configuration - #113

Merged
vitramir merged 1 commit into
mainfrom
product-urls-from-config
Aug 12, 2026
Merged

vitramir merged 1 commit into
mainfrom
product-urls-from-config

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

The product switcher built its links by replacing the first label of the current hostname with the sibling's name, which holds only while every app is served at <product>.<domain>. An install at chat-agyn.example derived console.example — a host that exists nowhere on it — so every entry led to a 404, along with the tracing link and the agent settings link out to the console.

The image offered no way to correct it: __config.js carried API_BASE_URL, MEDIA_PROXY_URL and the OIDC settings and nothing else.

Now reads CHAT_URL, TRACING_URL, CONSOLE_URL and SANDBOXES_URL, deriving only where one is unset, so default installs and devspace are untouched. The umbrella feeds them through envFrom from a ConfigMap it derives from the routes it already declares.

Breaking, chart only. MEDIA_PROXY_URL leaves the chart's env: block and the mediaProxyUrl value goes with it. An explicit empty variable shadows extraEnvVarsCM, so leaving it there would have kept the media proxy guessing while the other four were told. bundle-vm was the only caller and now sets platform.externalUrls.mediaProxy; anyone else setting mediaProxyUrl should move to extraEnvVars or the umbrella value.

Same change as agynio/console-app#143, which carries the tests for the shared logic.

The product switcher built its links by replacing the first label of the
current hostname with the sibling's name, which holds only while every
app is served at <product>.<domain>. An install at chat-agyn.example
derived console.example -- a host that exists nowhere on it -- so every
entry led to a 404, along with the tracing link and the agent settings
link out to the console.

MEDIA_PROXY_URL moves to the same mechanism. It stays out of the chart's
env: block with the other four, because an explicit empty variable
shadows extraEnvVarsCM, which is how the umbrella feeds them -- so
leaving it there would have kept the media proxy guessing while the rest
were told. mediaProxyUrl goes with it; bundle-vm was its only caller and
now sets platform.externalUrls.mediaProxy.

Read CHAT_URL, TRACING_URL, CONSOLE_URL and SANDBOXES_URL, and derive
only where one is unset, so default installs and devspace are untouched.
@vitramir
vitramir requested a review from a team as a code owner August 12, 2026 06:37
@vitramir
vitramir merged commit cba3fb0 into main Aug 12, 2026
1 of 2 checks passed
@vitramir
vitramir deleted the product-urls-from-config branch August 12, 2026 06:49
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.

1 participant