now window shows javascript:void(0); error page in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 10:09 PM
On my support portal post clicking on hyperlink avaliable on knowledge article it is getting opened in same page along with new window getting opened with "javascript:void(0);" error.
Please help me on how to restrict this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 10:24 PM
which portal is that? share some screenshots.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 10:24 PM
@Medikonda Shara It happens when hyperlink is not formed properly and javascript&colon breaks the functionality .
1.Check the hyperlink construction in html once , ensure hyper links properly written something like this
<a href="your url">Link</a>
2. if you are creating link dynamically e.g from KB article , ensure there is no html coding issue and avoid using javascript:void in href.
3. or use ng link something like this
<a href=" "ng-click="dosomething()">clickhere</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 10:25 PM
Hello @Medikonda Shara ,
Please provide a screen shot of the error and, if possible the code of the widget that this is about.
Regards,
Robert