Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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.

 

link checker.png

 

Hope this helps!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

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.

 

link checker.png

 

Hope this helps!