AEM Target replacing href value | Community
Skip to main content
September 8, 2021
Solved

AEM Target replacing href value

  • September 8, 2021
  • 1 reply
  • 949 views

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

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 Fanindra_Surat

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

1 reply

Fanindra_Surat
Community Advisor
Fanindra_SuratCommunity AdvisorAccepted solution
Community Advisor
September 8, 2021

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

September 8, 2021

Thank you for suggesstion. Let me check and update you soon