Question


AARETE
US
Last activity: 17 Mar 2020 13:23 EDT
How to redirect user back to login screen when they hit refresh button on confirmation screen?
Hello All,
We have a requirement to redirect the user back to the login screen when they hit the refresh button(on the browser) on the confirmation screen. Any ideas about how we can implement this?
Thanks
***Edited by Moderator Marissa to update platform capability tags; update Product/Version; add SR Details****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


AARETE
US
As an alternative, I used the below script as a temporary solution
var isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
// When an IE11 user attempts to leave this page, display a confirmation modal alerting them that any unsaved work will be lost. window.onbeforeunload = function (evt) { if (isIE11) { var message = 'Please make sure you have saved your work. Any unsaved work will be lost when leaving this page.'; if (typeof evt == 'undefined') { evt = window.event; } if (evt) { evt.returnValue = message; } return message; } }


Pegasystems Inc.
US
Hi,
Can you elaborate on what do you mean by Confirmation Screen? Is it a confirm harness screen?
Also, note that showing the login screen in Pega may or may not be possible as there is an authenticated browser session for the user and need to handle that.


AARETE
US
Hi,
Yes, It is a customized confirmation harness.
Updated: 14 Jun 2021 7:38 EDT


Pegasystems Inc.
IN
Do you mean by showing login screen when they click on Refresh is to make current user logout of the application and show him the login screen?


AARETE
US
Yes, that is correct we have decided to do this because we have an issue on IE with a circumstanced rule. It is showing the base version when the user hits the refresh button on the browser.
Updated: 14 Jun 2021 7:38 EDT


Pegasystems Inc.
IN
On the action set of the refresh button of Confirm Harness, configure action as Log Off.
Please find the below screenshot for more details.


AARETE
US
The refresh button is from the browser.


Pegasystems Inc.
US
I am unsure how do we capture the Refresh button event from the browser with in Pega and then invoke certain activities like LogOff to end the session. This may be doable using javascript function, but doesn't look right to me.
If you ask me, I would rather than spend time fixing the actual issue with the help of Pega if the browser refresh button is supported or can be handled.


AARETE
US
I have tried raising an SR since the actual issue is caused due to OOTB rules. But we heard from Pega that they are going to stop supporting IE11.


Pegasystems Inc.
US
I have never heard of anything like stop supporting IE11 as such, but I heard things like not supporting browser Refresh or Back button for certain actions.


AARETE
US
So, when they don't support refresh or back button what is recommended approach to handle this scenario? When we refresh on any screen we this error on the clipboard.


Pegasystems Inc.
US
What is the SR #? I recommend opening up an SR for investigating the original issue.


AARETE
US
Here is the SR-D87012
Updated: 14 Jun 2021 7:38 EDT


Pegasystems Inc.
IN
Sorry Kishore, I missed this in the question.
As Harish said, it would be better to fix the actual issue.


Pegasystems Inc.
US
Does this only happen in IE?


AARETE
US
Yes, This is happening only in IE
Accepted Solution


AARETE
US
As an alternative, I used the below script as a temporary solution
var isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
// When an IE11 user attempts to leave this page, display a confirmation modal alerting them that any unsaved work will be lost. window.onbeforeunload = function (evt) { if (isIE11) { var message = 'Please make sure you have saved your work. Any unsaved work will be lost when leaving this page.'; if (typeof evt == 'undefined') { evt = window.event; } if (evt) { evt.returnValue = message; } return message; } }


Pegasystems Inc.
US
Hi @kishore006!
Thanks for sharing your resolution! I have also updated your Product/Version based on your SR-Id information. If this isn't correct, please click the Edit link and update the details. I have also updated your content type from General to Product as this is a Product question.
Thanks again!
Marissa | Senior Moderator | Pega Collaboration Center