How to get URL Path
Question

Hi All,


I Want to get current URL.

ex. a.domain.com/application/login.aspx

I want to get just a.domain.com/. 


Thank you.

mvp_badge
MVP
Solution

Hi Roman,

Use GetRequestDomain() from HTTPRequestHandler_API

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/HTTPRequestHandler_API#GetRequestDomain

Regards,

Daniel

WHAT SHOULD i DO FOR ENTIRE URL ?

mvp_badge
MVP

You can use the built-in GetBookmarkableURL function like @Francisco Jiménez Zamora mentioned below.

That would be the domain, not the url path. Unfortunately, that key word puts you at the top of any search result for outsystems url path, and I doubt Outsystems moderators will fix it.

Hello Roman, you can use this function maybe, and after use a Trim function and take the domain only

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.