How to get the full URL of the instance in servicenow.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2017 02:10 AM
Hi,
I would like to know how to get the full url of the instance when i open the ESS page of my instance.
for ex:- my ess page url is https://abc.service-now.com/xyz/help.do , i want to get this full url in a string so that i could search for the text xyz in the url.
i have tried gs.getProperty('glide.servlet.uri'); but it only gives https://abc.service-now.com.
Any help would be appreciated.
Regards,
Shiva Chauhan
Labels:
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2017 01:04 PM
Hi Shiva,
Try using
var currentUrl = window.location.href;
alert(currentUrl);