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

Hi Manjunath,



Following links should be helpful. They use client side jquery to determine the link broken or not.



jquery - Checking if a URL is broken in Javascript - Stack Overflow


javascript - detect external broken links - Stack Overflow


javascript - How to check broken links in a webpage using Casperjs? - Stack Overflow


JavaScript/jQuery check broken links - Stack Overflow



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


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

Hi,



                  So, copying and pasting the answers of the JavaScript/jQuery program specified as solutions on ServiceNow would help. Is my understanding correct?


Hi Nandan,



That links should help you proceed in right direction I think so. Also I think there is no clear solution to achieve this in ServiceNow itself without using jQuery plugin etc. So you can try that option as well.



Regards


Ankur


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