<a href=> tag is not getting on publish environment

Amityadav0010 02-10-2018

I am facing issue with <a href=> html tag which is not getting on publish/dispatcher page and link is disappearing, please find below affected html.

<div class="c-error-page__error-content__error-description" data-sly-test="${data.errorDescription}">${data.errorDescription @context="html"}</div>

        <sly data-sly-list.item="${data.links}" data-sly-test="${data.links}">

            <a class="c-error-page__error-content__btn-white" href="${item.linkURL}" data-sly-test="${item.linkText}">${item.linkText}</a>



i have authored link URL and text on page component and it's showing in jcr node of page but class applied for <a> tag and authored URL link it's not getting on publish environment, please find below affected page source html.

<div class="c-error-page__error-content__error-description"><p>Page not found.</p>


                    Go to Homepage       


This issue is working fine on my local and lower dev (author/publish) environment but facing issue on production publish environment.

I am not sure why it's not working to specific publish environment, can you please give me some inputs.

Accepted Solutions (1)

Accepted Solutions (1)

Lavanya_Malyala 03-10-2018


AEM link checker is used to validate all internal and external links available on the page.

It automatically checks links and will not publish a broken link. In some ways, this is great, since AEM self-monitors and corrects for issues, but when you know the link is correct and it won’t let you write it, then there’s a problem.

The following are few example links which might not be published by AEM (AEM consider them as broken links):

  1. href="tel:123-456-7890"
  2. href="*|FORWARD|*"
  3. href="http://www.facebook.com/sharer/sharer.php?u=*|URL:ARCHIVE_LINK_SHORT|*"
  4. href="http://twitter.com/intent/tweet?text=*|URL:MC_SUBJECT|*: *|URL:ARCHIVE_LINK_SHORT|*"

How to fix this issue:

In order to fix this issue, you can follow either of the steps mentioned in the below articles:



Also you can refer to following links which will help you resolve this issue:



I hope this helps!


Lavanya Malyala

Answers (4)

Answers (4)


As most of them said, 1st thing is to check your href link. You can disable the linkchecker following the below steps and see if that works

  1. Go to /system/console/configMgr and login as admin
  2. Find the "Link Checker Transformer"
  3. Check the "Disable Checking" box and save
  4. Go to /crx/explorer and login as admin
  5. Open "Content Explorer"
  6. Browse to /var/linkchecker
  7. Right click the node and select "Delete Recursively"
  8. Click "Save All"

Also, I see there is a <div> missing in your html which you may to correct it.


To trouble shoot

Check 1

  Is this returning you valid objects ? data.links ; is this returning the value intended ?

Check 2

   If check 1 is cleared , then make sure the links returned are valid. But since you are saying in the lower region it is working fine, I would like you to cross verify this as others suggested

Check 3

Always keep your immediate lower region (STAGE or PREVIEW) as a replica of PROD and do a exact content to content test in those regions before going for PROD deployment



priyavnair 27-08-2019

I am also facing the same issue. But this issue we have just in production. I compared the link checker configuration and its is the same in the lower environments. I tried adding x-cq-linkchecker="skip" to the a tag. I cannot test the same in the lower environments as we don't have this issue in lower environments. This attribute is not getting displayed in the a tag using DOM explorer. Is that expected? Will we not see this parameter in the DOM Explorer? Can some one help?

rajas66269496 03-10-2018

Day Link checker configuration validates if the URL is valid URL or not, if not then it will remove the anchor tag, please check Link check configuration in production publish instance. you can try disabling link checker service and check if you are able to see links are appearing in the output, after disabling link check service you should all valid and invalid links.

Disabling link checker service is not recommended, you can do this only for troubleshooting.