americanexpress / americanexpress/react-albus

Preserve query parameters when moving to next step

Open
#36 6 comments 3 reactions 0 assignees View on GitHub
stale-issue
Dominant language
JavaScript
Stars
1.1k
Forks
88
PR merge metrics
No merged PRs in 30d

Description

When the Wizard is route controlled, when I move to the `next` step, the url and state changes.

Now this is all good, but the query parameters are lost during that transition. So for example, I wanted to move from add -> confirm, and my route has:

```/basePath/add?itemId="thisisanid"```

when I move to the `next` step my url becomes

```/basePath/confirm"```, when I want the url to preserve the query param as
```/basePath/confirm?itemId="thisisanid"```

Is there a way to do this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the route-controlled transition used when moving from the add step to the confirm step. Reproduce it with `/basePath/add?itemId="thisisanid"` and inspect how the next-step URL is built. Done means the query parameters remain present after the transition, including in the resulting URL and state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.