JoinColony / colonyCDapp

An iteration of the Colony Dapp sporting both a fully decentralized operating mode, as well as a mode enhanced by a metadata caching layer
5 stars 13 forks source link

[Dashboard] Newly created transaction remove previous query param #3176

Open Nortsova opened 4 days ago

Nortsova commented 4 days ago

Steps to reproduce

query-string-cleaned

  1. Navigate to the dashboard and select the team (domain id = 2)
  2. Create any transaction
  3. After a new transaction is created it has the "tx={hash}" query string
  4. And this new query string removed the "team=2" query
  5. This means after new transaction is created and the motion modal is closed you would be redirected to the general, not selected domain

Expected behaviour

Actual behaviour

Suggestions (optional)

Instead of navigating and creating new URL we can just use URLSearchParams to add new param, and we can unify this solution for all actions:

image