Skip to content

feat: forward dclenv param from jump URL into Explorer deep link#487

Merged
braianj merged 11 commits into
masterfrom
feat/forward-dclenv-to-deep-link
May 18, 2026
Merged

feat: forward dclenv param from jump URL into Explorer deep link#487
braianj merged 11 commits into
masterfrom
feat/forward-dclenv-to-deep-link

Conversation

@decentraland-bot
Copy link
Copy Markdown
Contributor

When a user opens decentraland.org/jump?realm=...&position=...&dclenv=zone, the dclenv parameter was silently dropped before calling launchDesktopApp, so the Launcher always opened the default (prod) Explorer regardless of the requested environment.

What changed

src/features/places/places.helpers.ts

  • buildDeepLinkOptions(position, realm, dclenv?) gains a third optional argument
  • Returns dclenv in the options object when provided

src/components/jump/JumpInButton/JumpInButton.tsx

  • Reads ?dclenv= from the current URL via useSearchParams
  • Passes it to buildDeepLinkOptionslaunchDesktopApp
  • dclenv added to the useCallback dependency array

src/features/places/places.helpers.spec.ts / JumpInButton.spec.tsx

  • Tests added for dclenv forwarding in both helper and button

Dependency

A companion PR in decentraland/ui2 adds dclenv to JumpInOptions and buildDecentralandUrl: decentraland/ui2#441

This PR is deployable independently (TypeScript structural subtyping allows passing dclenv before ui2 is updated). The end-to-end dclenv forwarding activates fully once decentraland-ui2 is bumped to a version that includes the ui2 PR.


Requested by Pravus via Slack

Read the `dclenv` query parameter from the current URL in JumpInButton
and pass it through buildDeepLinkOptions → launchDesktopApp so that
URLs like /jump?realm=...&position=...&dclenv=zone open the Explorer
in the correct environment.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sites Ready Ready Preview, Comment May 18, 2026 8:37pm

Request Review

@coveralls
Copy link
Copy Markdown

coveralls commented May 18, 2026

Coverage Report for CI Build 26058979581

Coverage increased (+0.01%) to 93.51%

Details

  • Coverage increased (+0.01%) from the base build.
  • Patch coverage: 10 of 10 lines across 3 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4939
Covered Lines: 4839
Line Coverage: 97.98%
Relevant Branches: 3751
Covered Branches: 3287
Branch Coverage: 87.63%
Branches in Coverage %: Yes
Coverage Strength: 15.43 hits per line

💛 - Coveralls

@pravusjif pravusjif requested a review from braianj May 18, 2026 12:44
# Conflicts:
#	src/components/jump/JumpInButton/JumpInButton.spec.tsx
@braianj braianj merged commit 2ce4d3a into master May 18, 2026
8 checks passed
@braianj braianj deleted the feat/forward-dclenv-to-deep-link branch May 18, 2026 20:41
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