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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

srinivas_chann1
Level 7
Level 7

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
Bhuwan_B
Correct answer by
Community Advisor
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
Asutosh_Jena_
Community Advisor
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!

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

bangar50
Level 7
Level 7

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