anchor tags gets remove as soon as i add in a href url | Community
Skip to main content
gavinw66429322
October 20, 2020
Solved

anchor tags gets remove as soon as i add in a href url

  • October 20, 2020
  • 1 reply
  • 2005 views

Hi

I have my local instance of AEM Project Running and I can style my anchor tags all well but as soon as I add a url in my href it remove my link completely and makes the content like plain text 

 

so instead of this <div class="mydiv"><a href="mypage.html">this was the link</a></div> im getting this --  <div class="mydiv"> " this was the link" </div>

 

how do i get this to work correctly on my local instance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manjunath_K

Hi @gavinw66429322 

If Day CQ Link Checker is enabled & configured with "a:href" then anchor links will be removed if anchor link is not starting with "/content" (if its internal url) or "http/https"(if its external url). so, check "Day CQ Link Checker Transformer" configuration & if its enabled then have proper href links instead of "mypage.html" so that valid anchor links will not be removed by Link Checker.

 

 

Hope this helps!

1 reply

Manjunath_K
Manjunath_KAccepted solution
Level 7
October 20, 2020

Hi @gavinw66429322 

If Day CQ Link Checker is enabled & configured with "a:href" then anchor links will be removed if anchor link is not starting with "/content" (if its internal url) or "http/https"(if its external url). so, check "Day CQ Link Checker Transformer" configuration & if its enabled then have proper href links instead of "mypage.html" so that valid anchor links will not be removed by Link Checker.

 

 

Hope this helps!

kautuk_sahni
Community Manager
Community Manager
October 26, 2020
Wonderful answer.
Kautuk Sahni