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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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

Avatar

Level 1

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

Avatar

Level 1

Hi , 

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

 

Thanks!, 

Unnikrishnan