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

SOLVED

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

gavinw66429322
Level 1
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
Manjunath_K
Correct answer by
Community Advisor
Community Advisor

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
Manjunath_K
Correct answer by
Community Advisor
Community Advisor

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