how can we retrieve the current browser link in a script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 10:10 AM
Hello,
Can someone please tell me how can we retrieve the current complete browser link in a script include?
I have used gs.action.getGlideURI() : This gives me only "navpage.do" as result
I have also tried using gs.getProperty('glide.servlet.uri') : This gives me only "https://instancename.service-now.com"
Both of them don't retrieve the complete link.
Regards,
Reeba

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 10:13 AM
@reeba Can't you use a combination of both for e.g.
var someURL =.gs.getProperty('glide.servlet.uri')+'/' + gs.action.getGlideURI();
gs.info(someURL);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 10:45 AM
Hi Sandeep,
I tried your suggestion, for this i got the result as "https://instancename.service-now.com/navpage.do" when i opened a ui action, it give the complete link.
Do you have any other suggestions that i should try?
Regards,
Reeba

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 07:36 PM
@reeba What do you mean by the complete link? Could you post a sample link here?