- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 04:09 PM
is there way to make the link reflect the instance, we added an instruction with a link pointing to a form, but the problem it is static, so it always point to prod in non-prod.
Since there is option to use html source, I wonder if this can be modified using the gs.getProperty('glide.servlet.uri')
<a title="link" href="https://INSTANCE.service-now.com/sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3" rel="nofollow">link</a>
<a title="link" href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3'" rel="nofollow">link</a>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 07:56 PM
Hello,
You should be able to do the below, and it will direct to the catalog item in the instance the user is currently using.
<a title="link" href="/sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3" rel="nofollow">link</a>
Hope that helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:04 PM
Hi you can remove the instance URL and do like below. This will point to the current instance from the user clicks for example when the user clicks in prod using below url it will point to production.
<a title="link" href="/sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3" rel="nofollow">link</a>
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 07:56 PM
Hello,
You should be able to do the below, and it will direct to the catalog item in the instance the user is currently using.
<a title="link" href="/sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3" rel="nofollow">link</a>
Hope that helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:04 PM
Hi you can remove the instance URL and do like below. This will point to the current instance from the user clicks for example when the user clicks in prod using below url it will point to production.
<a title="link" href="/sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3" rel="nofollow">link</a>
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:07 PM
I write it like that in mail scripts for. See why it wouldn’t work for this either
<a title="link" href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=sc_cat_item&sys_id=0ffadb277489619c30702454555e5f77489619a3'" rel="nofollow">link</a>
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response helped in any way