Skip to content

feat: add dclenv support to launchDesktopApp deep link#441

Merged
braianj merged 1 commit into
masterfrom
feat/dclenv-deep-link-support
May 19, 2026
Merged

feat: add dclenv support to launchDesktopApp deep link#441
braianj merged 1 commit into
masterfrom
feat/dclenv-deep-link-support

Conversation

@decentraland-bot
Copy link
Copy Markdown
Contributor

Add dclenv to JumpInOptions and forward it as a query parameter in the decentraland:// deep link built by buildDecentralandUrl.

This is a backward-compatible, additive change — existing callers that omit dclenv see no change in behavior.

Why

decentraland.org/jump URLs accept a ?dclenv= parameter (e.g. ?dclenv=zone) to let users open the Explorer in a specific environment. Without this change, launchDesktopApp drops the parameter and the Launcher always opens the default (prod) environment, breaking QA and zone workflows.

What changed

src/modules/jumpIn.ts

  • Added dclenv?: string field to JumpInOptions (with JSDoc note)
  • buildDecentralandUrl now appends dclenv to the URL params when present

Downstream

decentraland/sites has a companion PR that reads ?dclenv= from the jump URL and passes it to launchDesktopApp. That PR is self-contained — it does not require this one to be merged first (TypeScript structural subtyping allows the extra field). Once this PR is merged and a new version of decentraland-ui2 is published, the sites PR will fully activate the end-to-end behavior.


Requested by Pravus via Slack

Add `dclenv` field to `JumpInOptions` and include it in the
`decentraland://` URL built by `buildDecentralandUrl`. This lets
callers forward the environment selection parameter (e.g. `zone`)
so the Launcher opens the Explorer against the intended environment.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying ui2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8715064
Status: ✅  Deploy successful!
Preview URL: https://5ac22d29.ui2-423.pages.dev
Branch Preview URL: https://feat-dclenv-deep-link-suppor.ui2-423.pages.dev

View logs

@pravusjif pravusjif requested a review from braianj May 18, 2026 12:44
Copy link
Copy Markdown
Contributor

@juanmahidalgo juanmahidalgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@braianj braianj merged commit a6474a6 into master May 19, 2026
4 checks passed
@braianj braianj deleted the feat/dclenv-deep-link-support branch May 19, 2026 16:54
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.

3 participants