We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

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