Redirect a url
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 12:18 AM
Hi,
How can i redirect a specific url whenever it is opened?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 12:36 AM
HTML:
<a href = "{{data.addToCalender}}" target="_blank">
<button class="btn btn-primary action-btn pull-right">
Add to calendar
</button></a>
Server:
data.addToCalender = gs.getProperty("glide.servlet.uri")+"nav_to.do?uri=sys_attachment.do?sys_id="+attID;
Its downloading like that
I want to close this url after downloading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 01:14 AM
@Rosy14 , did you tried the solution which I had Provided?
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 10:44 PM
yes I tried, but in previous page it is reflecting not in the next page where the download performing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 12:34 AM
Hi Rosy,
It will not be straightforward if its a portal ui action. You need to tell it what to do. Here is something you can get an idea from: https://www.servicenow.com/community/developer-articles/workaround-to-use-action-setredirecturl-in-p...
Warm Regards,
Shivambi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 12:40 AM
Is there any way whenevere this url come it will automatic redirect. in BR or client script have to add table/condition. So i want it will happen all time