Query params encoding in the browser URL

I am creating and PWA in the Ionic. I want to perform URL encoding in the Ionic.
How can I achieve that?

I am using lazy loading so one way is I can add dynamic name after the segment like:
segment: ‘payment/:form_id’.

but If I want to pass multiple params in the URL it will not be possible to create it. Is there any way in Ionic where we can pass multiple values(4-5 values) in the URL?

Is there any way we can do URL encoding or send multiple parameters in the URL while navigating between page?