praetorian-inc / chariot-ui

Chariot Offensive Security Platform
https://preview.chariot.praetorian.com
MIT License
15 stars 6 forks source link

Reset search change on path change #55

Closed subbiah2806 closed 2 weeks ago

subbiah2806 commented 3 weeks ago

Summary

Describe the changes and the issue it addresses (e.g., Fixes #123).

Type

Specify if this is a bug fix, new feature, breaking change, or documentation update.

Context

Add any additional details or screenshots.

storbeck commented 3 weeks ago

When the risk drawer is opened it does not retain the ?q= parameter when ?drawerCompositeKey= gets added, which is clearing the search.

Can you update this so that when search params are added or removed, they don't impact any other parameters. If the url is url?q=x it should be url?q=x&drawerCompositeKey=x and on close it should return to url?q=x