Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Getting the URL from Server Script

cspra
Giga Expert

Hello,

Is there a way to capture the URL/URI in Server Script of a widget in the INITIAL load of the page?

*location, *window, getUrlOnStack are either returning null or undefined.

getGlideURI() - is returning not exactly the URI from the URL address. The '=', '&' are converted to different format such as '%3d', '%26'.

Thanks.

 

   

5 REPLIES 5

Please close question as answered

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader