Uniswap / Uniswap/interface

Return the ?chain= to the UI for custom paths

Open
#5,197 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

improvement
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Token creators/companies, usually like to create a direct swap link, leading users to the correct swap. Currently the UI isn't allowing the chain addition to the link.

Describe the solution you'd like
Re - add the ?chain=, and have it trigger the switch chain request to user if not currently on the chain

https://docs.uniswap.org/protocol/V1/guides/custom-linking

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the UI's custom-path handling and the custom-linking documentation at docs.uniswap.org/protocol/V1/guides/custom-linking. Trace how the chain query parameter is currently parsed, then verify that a custom swap link preserves it and prompts a chain switch when the wallet is on another chain.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.