If it exists, propagate wid url param to import-data url
From Terra Data tab, user clicks on a button to view a cohort in DE. For DE url, terra-ui will append wid=<wid>, where <wid> is cohort's workspace id.
In DE, user edits cohort and saves the new cohort. When DE calls app.terra.bio/#import-data, DE will pass wid param. The specified wid is selected by default in workspace drop-down.
Also:
Change window.history.pushState -> replaceState
I figure that if someone clicks around in DE and presses back button, they would want to go to page before DE
If it exists, propagate wid url param to import-data url
<wid>
, where<wid>
is cohort's workspace id.Also:
Change window.history.pushState -> replaceState I figure that if someone clicks around in DE and presses back button, they would want to go to page before DE
Use new UrlSearchParams library to simplify query string parsing