How to check and fix broken links?

sifynm
Tera Expert

                  Is there a way to check and fix a broken link? How to detect the same and automatically fix it using a script dynamically? I have referred to some of the documentations here https://community.servicenow.com/thread/177341?q=Broken%20links   but was not of much help as it is not answered. Is there a way I can schedule a job to do a daily, weekly and monthly check and generate a report or trigger an alert when there is a broken link found.

1 ACCEPTED SOLUTION

Dear Mr. Ankur Bawiskar,



                  Just include any website link here W3C Link Checker   and you will come to know the results. Likewise, I want it on ServiceNow and the remaining is as mentioned in the query above. Hope, this I am sure makes it more specific. This I also believe is like answering my own question.


View solution in original post

12 REPLIES 12

Dave Smith1
ServiceNow Employee
ServiceNow Employee

Nandan Manjunath wrote:



Dave,



For me it works fine


would like to make it work on ServiceNow


That was kinda my point, really: the W3C link checker fails on links that require authentication.



What links are you checking? KBs?



You may find this useful: https://github.com/dereklio/ServiceNowScripts/tree/master/Broken%20Links%20Checker


Thank you for the link Mr. Dave smith. This is helpful but I am looking for something more precise.


Dave Smith1
ServiceNow Employee
ServiceNow Employee

staceybailey mentioned to me she used a browser plugin with some measure of success - at least it gets around the authentication issues, since you're already logged in.



What browser(s) are you using?


This was helpful as well.


Ankur,



                  Do you require more information on the same?