In AEM6.5 anchor tag removing /content value in href | Community
Skip to main content
srinivas_chann1
Level 7
October 13, 2021
Solved

In AEM6.5 anchor tag removing /content value in href

  • October 13, 2021
  • 3 replies
  • 1700 views

Hi,

 

In the slightly code of html I have 

<a href="${'/content/abc/123.html?text=123 @2941342= 'html'}">button</a>

 

I noticed the page renders the anchor tag without /content . This is happening for urls which has ? in the href

 

<a href="${'/abc/123.html?text=123'}">button</a>

 

What could be the issue here .How to resolve it

 

Thanks

 

 

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 Bhuwan_B

@srinivas_chann1 Please add x-cq-linkchecker="valid" parameter in the <a> tag or disable external link checker entirely by going to felix console.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/linkchecker-removing-href-value/td-p/294597

3 replies

Asutosh_Jena_
Community Advisor
Community Advisor
October 13, 2021

Hi @srinivas_chann1 

 

You see this issue on both author and publish or any specific instance? Can you check if you have any etc/maps configured to rewrite the URLs which has query string in it?

 

It an issue with the URL shortening. So let's check the etc/maps first.

 

Thanks!

srinivas_chann1
Level 7
October 13, 2021

check /etc/map don't have any such rules there

Bhuwan_B
Community Advisor
Bhuwan_BCommunity AdvisorAccepted solution
Community Advisor
October 13, 2021

@srinivas_chann1 Please add x-cq-linkchecker="valid" parameter in the <a> tag or disable external link checker entirely by going to felix console.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/linkchecker-removing-href-value/td-p/294597

srinivas_chann1
Level 7
October 13, 2021

added x-cq-linkchecker="skip"  it worked

Sanjay_Bangar
Community Advisor
Community Advisor
October 13, 2021

Hi @srinivas_chann1 ,

                                    It can be possibility due to shortened url  as mentioned @asutosh_jena_ .

Can you please try other url  and is there  any logic written in the java for URL validation check that also.

 

Regard,

Sanjay