How to handle url with spaces?

Hello Experts,

I’m trying to open a webpage using “open browser” activity. Url which I’m trying to open has a space. For example : preprod/active.

When I try to open the above link, UiPath considers only until It ignores the rest of the url.

Please help. Thank you

Hi Pavan,

URL shouldn’t have spaces - maybe try replacing space with + or %20 in your Input URL

1 Like


Can you try the following expression using Assign activity?

yourURL = Uri.EscapeUriString(yourURL)


1 Like

Thank you for your response. I tried +. It is literally adding + in between which is making the url wrong.

I also tried %20 but no luck. :frowning:

Thank you for your response. May I declare a variable and assign my url value and then add it as mentioned above?

Hello, I removed http:// and replaced space with %20. It worked. Thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.