Hi @akhil-leen,
Just did some testing, I now have lots of thoughts about how we can improve this to better explain how to enable your use case as I imagine other users will have similar plans.
In your case, since you are able to grab the ID from the url.searchParams.connectionId
, you will want to add this in the the 'value' input field in your first screen shot. Which is to the right of 'connectionId' where you are setting the URL search parameters.
This should allow for the value of url.searchParams.connectionId
to appear in the Details page's URL and allow for this to be shared.