Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Broken Link Scan

Avatar

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
jenniferg277302
Level 1

29-07-2016

Hello,

I am new to AEM and this forum. I am very happy to have found it.

We have a new website implemented via AEM and I have noticed that while we do not have broken links via our production website that we have many text statements that should be linked, and are linked in AEM, but were stripped due to the AEM function to remove bad links from being published.

Is there a way to scan our website or AEM instance for these "broken links" so we can fix them?

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

01-08-2016

Hi

As mentioned by Scott, 

We can use:-

1. The External Link Checker

Link:- https://docs.adobe.com/docs/en/aem/6-2/administer/operations/external-link-checker.html

//An external link checker is provided within CQ. The link checker:

    scans all content pages
    generates a list of all valid and invalid links
    marks invalid links as broken in situ on the individual content pages

2. Linkchecker is a Sling rewriter. Rewriters are strictly associated with the request. They operate on the HTML code generated by the CQ before it's returned to the client. If I understand correctly, you want to look for broken internal links in the whole site and the Linkchecker won't be very useful here.

Consider using Groovy console to crawl over the /content/your_site looking for strings starting with /content. Then use resourceResolver to check if the found path exists. Sample script implementing this algorithm can be found here.

 

Also there exist free online tools to check broken links:-

Link:- http://www.brokenlinkcheck.com/broken-links.php

Link:- www.deadlinkchecker.com

 

I hope this will help you.

Thanks and Regards

Kautuk Sahni

Answers (4)

Answers (4)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-07-2016

Welcome to the AEM Community. Here you will have access to AEM community members and tons of resources. 

TO check for broken links - there is a tool that is available with AEM named the link checker: 

https://docs.adobe.com/docs/en/aem/6-1/administer/operations/external-link-checker.html

As you are new to AEM - here are some useful pages; 

AEM Community Page

AEM documentation 

AEM HELPX pages

AEM Ask the Community Experts 

Hope these help! 

Avatar

Avatar
Level 1
rajendrab9
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
rajendrab9
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
rajendrab9
Level 1

12-06-2019

Hi ,

Can you help me with internal link checker as well?

The mentioned tool only supports external links.

Avatar

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
jenniferg277302
Level 1

01-08-2016

Hello,

Unfortunately this tool is not what I was looking for. What I need is a link checker for ALL links (not just external) that shows me which links are valid and which are not. We did a content migration and many of the internal links have been stripped in production. 

Again I am concerned mostly with links on my domain that are not working.

Thank you for your help.

Jennifer

Avatar

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jenniferg277302
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
jenniferg277302
Level 1

29-07-2016

Thank you 🙂