sysparm_goto_url What is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 01:41 AM
Hi all,
In the MultiSSO logout Installation Exit code, I saw the below line of code.
processNormalLogout : function() {
var s = request.getParameter('sysparm_goto_url');
if( s & GlideSecurityUtils.isURLWhiteListed(s))
{
So, can someone please explain me what value does sysparm_goto_url holds?
Thanks in advance.
Regards,
Lucky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 10:00 PM
Hi @Lucky1 ,
The sysparm_goto_url
parameter in the code is used to specify a URL to redirect to after logout. This parameter holds the URL that the user is redirected to after the logout process. The GlideSecurityUtils.isURLWhiteListed(s)
function checks if the URL specified in the sysparm_goto_url
parameter is on the list of approved (or "whitelisted") URLs for security reasons, to prevent users from being redirected to potentially harmful or malicious websites.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:21 AM
"sysparm_goto_url" is a query parameter in ServiceNow that can be used to redirect the user to a different URL or page within the platform.
The "sysparm_goto_url" parameter is used in the URL of a ServiceNow page and can be used to control where the user is redirected after performing an action such as submitting a form or clicking a button. For example:
https://instance.service-now.com/nav_to.do?uri=incident.do?sysparm_goto_url=list
In this example, the "sysparm_goto_url" parameter is set to list, which will redirect the user to the incident list view after they submit the form.
The value of the "sysparm_goto_url" parameter can be any valid URL within the ServiceNow platform, and can include additional query parameters to further control the behavior of the page. The use of "sysparm_goto_url" can simplify the user experience by automatically redirecting the user to a relevant page after an action is taken.
Please mark it helpful, if it helps.
Regards,
Nawaz