Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query API: Preserve multiple ?plugin= query params (#1947)
Ensures that URLs with multiple parameter values, such as `?plugin=friends&plugin=hello-dolly`, are preserved after the initial page load. As seen in #1941, Playground started redirecting from `?plugin=friends&plugin=hello-dolly` to just `?plugin=hello-dolly`. This is caused by storing only the last key=>value pair in the redux store instead of all the key=>value pairs for all query parameters. ## Testing Instructions (or ideally a Blueprint) Go to the Input URL and confirm it behaves as follows: **Before this PR** ``` Input URL: /?plugin=classic-editor&plugin=hello-dolly&plugin=plugin-check Result URL: /?plugin=plugin-check ``` **After this PR** ``` Input URL: /?plugin=classic-editor&plugin=hello-dolly&plugin=plugin-check Result URL: /?plugin=classic-editor&plugin=hello-dolly&plugin=plugin-check ```
- Loading branch information