MSM : adjust href in localized XF | Community
Skip to main content
New Participant
September 8, 2021
Solved

MSM : adjust href in localized XF

  • September 8, 2021
  • 3 replies
  • 996 views

Hi,

We have been working on XF structure in order to make it similar to the main site structure for MSM which comes with regions and languages.

XFs, contain links which are not adjusted when creating live-copies. The href shows the path for the blueprint instead of the corresponding path in live copies pages.

What is an easy way to have the links in XFs reflect the livecopy path ?

Thank you,

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 user55521

I think the LCs of XFS should have their respective "local" links adjusted automatically upon rollout. You can try to see the behaviour of these with an AEM Vanilla installation + WKND sample content.

 

Check if you have nested LCs in the target XFs, you might need to adjust the relevant OSGi config: https://experienceleague.adobe.com/docs/experience-manager-64/administering/introduction/msm-sync.html?lang=en#configuring-synchronization-for-updating-references 

3 replies

user55521Accepted solution
New Participant
September 9, 2021

I think the LCs of XFS should have their respective "local" links adjusted automatically upon rollout. You can try to see the behaviour of these with an AEM Vanilla installation + WKND sample content.

 

Check if you have nested LCs in the target XFs, you might need to adjust the relevant OSGi config: https://experienceleague.adobe.com/docs/experience-manager-64/administering/introduction/msm-sync.html?lang=en#configuring-synchronization-for-updating-references 

Ravi_Pampana
New Participant
September 8, 2021

Hi,

 

If you want to match the link url added in XF to match with the corresponding locale/live copy, easiest way is to add the logic in LinkTransformerFactory.java so the link will be updated while rendering the html but still point to the blueprint in AEM.

Kiran_Vedantam
New Participant
September 8, 2021

Hi @manal-ghanim,

 

Please check this url where he discusses about an alternative: https://aemcorner.com/blueprint-live-copies-links-rewriting-why-chapter-links-are-not-correctly-rewritten/

 

Hope this helps.

 

Thanks,

Kiran Vedantam.