now window shows javascript:void(0); error page in service portal

Medikonda Shara
Tera Contributor

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.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Medikonda Shara 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Devi D
Tera Expert

@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&colon;void in href.

3. or use ng link something like this 

 

<a href=" "ng-click="dosomething()">clickhere</a>

Robert H
Mega Sage

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