Ionic PWA URL Query Params Getting Lost

While wiring up our routes with parameters in our Ionic PWA, I noticed that URLs with query parameters are getting redirected without the parameters. For example visiting:

http://localhost:8100/invite?email=me@gmail.com&token=abc123

Ends up getting redirected to just

http://localhost:8100/invite

So the email and token parameters are lost. For some routes we’re using path parameters like unsubscribe/:email/:token but other cases we may need to use query parameters instead, for example if the parameters are optional.

Is there a reason or a bug that query parameters are getting dropped?

Did you get any proper solution on how can we the query params in the Ionic app while navigating inside the Ionic app?