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 : http://dbprq.wonder.com/reports preprod/active.

When I try to open the above link, UiPath considers only until http://dbprq.wonder.com/reports. 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

http://dbprq.wonder.com/reports+preprod/active
http://dbprq.wonder.com/reports%20preprod/active

1 Like

Hi,

Can you try the following expression using Assign activity?

yourURL = Uri.EscapeUriString(yourURL)

Regards,

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.