Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

AEM Target replacing href value

Avatar

Level 1

Hi Folks,
I am facing one issue with XF and Target integration. When export XF to target, href value is replacing with the site URL. example is "href="javascript:void()" is replacing with "http://example.comnull".

How I can prevent overriding href value in target. It would be great if you can share any fix or suggestions about this.

 

Thanks!, 

Unnikrishnan

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Unnikrishnan-DK - What you are observing is the OOTB feature of AEM, where it externalizes the url's within the XF HTML when exported to target. This should not cause any issue with the Target use cases.

 

If the malformed url http://example.comnull is the concern, try updating the href value in your HTML to "href=#".

 

For some reason if you don't want externalization to happen, then revert your custom changes and custom domain from the "Day CQ Link Externalizer" OSGI config at location "/system/console/configMgr/com.day.cq.commons.impl.ExternalizerImpl" in Author instance only.

 

Thanks,

Fani

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @Unnikrishnan-DK - What you are observing is the OOTB feature of AEM, where it externalizes the url's within the XF HTML when exported to target. This should not cause any issue with the Target use cases.

 

If the malformed url http://example.comnull is the concern, try updating the href value in your HTML to "href=#".

 

For some reason if you don't want externalization to happen, then revert your custom changes and custom domain from the "Day CQ Link Externalizer" OSGI config at location "/system/console/configMgr/com.day.cq.commons.impl.ExternalizerImpl" in Author instance only.

 

Thanks,

Fani

Hi , 

if tryied with #, we are getting "#" in url , is there any option with "javascript:void()" approch

 

Thanks!, 

Unnikrishnan