Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the full url while loading the page.

Sethu Varma
Tera Expert

Hi All, 

 

I have requirement to get the URL if I click on the menu. I can able to get the base url using glide.servlet,uri but need full url. Based on that I can able to write condition. 

 

Can anyone please help me?

1 REPLY 1

Community Alums
Not applicable

Hi @Sethu Varma .

Please try below code for Server Side 

gs.getProperty("glide.servlet.uri") + gs.action.getGlideURI();

Here is Client Script code 

window.parent.location.href

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak