Expand my Community achievements bar.

SOLVED

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

Avatar

Level 8

Hi,

 

In the slightly code of html I have 

<a href="${'/content/abc/123.html?text=123 @CONTEXT= '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

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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-...

View solution in original post

5 Replies

Avatar

Community Advisor

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!

Avatar

Correct answer by
Community Advisor

@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-...

Avatar

Community Advisor

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