How to redirect user to Service Portal after clicking on refresh button which appears on VA session expirationDescriptionUse-case: Without SSO enabled, clicking on the refresh button once the VA session is timed out, the user will get redirected to the login page. However, if SSO is enabled then clicking the refresh button will lead the end-user to see the platform view. Scope of this use-case:1. Do not let guests create an interaction once the end-user clicks on the refresh button on VA chat which appears after the expiration of the VA session.(This is achieved by setting $sn-va-web-client-app false in the sys_public table)2. Do not let the end-user redirect to the VA chat page in the platform once he clicks the refresh button on VA chat.CauseWhen a user leaves a chatbot session open without interaction, a time-out message appears. However, if the user clicks refresh, it restarts a chat session as "guest" Most Probable Cause:$sn-va-web-client-app page is true in sys_public table. And if set $sn-va-web-client-app page 'false' in sys_public table and the user clicks on VA refresh button, he may see VA chat page in platform view.ResolutionTo redirect the user to the portal with above scenario, the below workaround may help: 1. Create a system propertyname: glide.entry.first.page.scripttype: stringvalue: new ChatSupportPageEntry().getFirstPageURL() 2. Create a script include. Set the name to ChatSupportPageEntry var ChatSupportPageEntry = Class.create(); ChatSupportPageEntry.prototype = { initialize: function() {}, getFirstPageURL: function() { if ( gs.getSession() !== null && gs.getSession() !== undefined && gs.getSession().getProperty('nav_to') !== null && gs.getSession().getProperty('nav_to') !== undefined && gs.getSession().getProperty('nav_to').includes('$sn-va-web-client-app.do') ) { gs.getSession().clearProperty("nav_to"); return '/myit'; } }, type: 'ChatSupportPageEntry' };Note:For this workaround,1. You can keep SSO active.2. It is required to keep $sn-va-web-client-app false in the sys_public table.