KB article opens in service portal but pop-ups to leave page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 04:54 AM
When I'm trying to open KB article from contextual search result's suggestions in record producer incident form, it opens there but at the same time pop-up comes to leave the page. And if I click on 'leave', it redirects me to service portal homepage.
Instead I want to open that knowledge article in the same or new window without redirecting to service portal homepage.
If anyone have solution for the scenario, please revert back..
Thank you...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 05:27 AM
Hello @Bharat Tagad,
You can try one of the following options:
- Option 1: You can check if you have any client scripts or UI policies that are modifying the record producer form when it is loaded. This can trigger the onbeforeunload event that prompts the pop-up to leave the page. You can disable or modify these scripts or policies to avoid this issue. You can find more details about this option in this link.
- Option 2: You can check if you have any browser extensions or settings that are interfering with the record producer form. This can also trigger the onbeforeunload event that prompts the pop-up to leave the page. You can disable or change these extensions or settings to avoid this issue. You can find more details about this option in this link.
- Option 3: You can check if you have the latest version of ServiceNow and your browser. This can help you avoid any compatibility issues or bugs that may cause this issue. You can update your ServiceNow instance and your browser to the latest version to avoid this issue.
Hope this helps.
Kind Regards,
Swarnadeep Nandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 06:46 PM
Hi @SwarnadeepNandy I tried the options you have suggested. But my problem remains as it is..🥲
I tried by making the glide.ui.dirty_form_supoort to false, it then doesn't show pop-up but form redirects to service portal homepage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 02:23 AM
Hi,
Have you got the solution?
I am facing the same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 04:29 AM - edited 12-19-2023 07:57 AM
Hello @Anshu Malviya ,
Yes, I got the solution!
Just you have to change the version of widget namely: Contextual Search - Inline Results to it's OOB version.
You can request to ServiceNow team for OOB version of the same widget.
simply impot this xml file into the sp_widget table in your instance.
That's all you are all set!
Feel free to mark my answer as correct if that helps for you:)
Best Regards,
Bharat