How to get Current URL including paramaters in Action Script/Context Menu
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 04:14 AM
Use Case:
I have a context menu, once clicked i want to get the current url including the paramaters.
How to this?
Thanks!
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 04:25 AM - edited 04-03-2024 04:30 AM
Hi @ican ,
Create a UI action with the below code :
var currentPageURL = gs.action.getGlideURI();
alert('Current Page URL: ' + currentPageURL);
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 04:26 AM
It should be in a Context Menu.
Is there way to this?
Thanks.