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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Target replacing href value

Unnikrishnan-DK
Level 1
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
fanindras
Correct answer by
Level 4
Level 4

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
fanindras
Correct answer by
Level 4
Level 4

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

Unnikrishnan-DK
Level 1
Level 1

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

Unnikrishnan-DK
Level 1
Level 1

Hi , 

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

 

Thanks!, 

Unnikrishnan