Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!

Change URL in live copy without breaking inheritance

Avatar

Level 1

We have setup MSM with English Language Master and use it to roll out to Live Copies for each sites that uses English.  When we roll down the pages from Language Master to Live Copies, it keeps the URLs in a link or button component as how they were originally authored, however we need to change the URL for the different domains we support but keep the text label on the link or button the same.  Is there a way to do that without breaking the inheritance?

 

For example, I have button on the page that says "Discover our products", the URL for the button is authored to go to <domain name>/en-us/products in Language Master.  However we need to change the URL to <domain name>/en-ca/products when it is rolled out to Canada's live copy.  Is there way to make this change without breaking the inheritance on the button component?

 

 

4 Replies

Avatar

Community Advisor

Hi

 Reference updates in live copy is default behavior. 

when you create live copy, all the reference links will automatically get updated if they’re from the same chapter. But, if your blueprint source has links pointing to a paragraph in a different chapter, those targets won’t update in the live copy pages. So Please check if both belongs to same chapter or not.

Avatar

Community Advisor

Hi @KevinWu1 

As @Dipti_Chauhan mentioned, the links should be adjusted within Chapter/bluepreint but if you have links from outside Chapter those might not be updating

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-21808

 

You may have to create custom rollout config to adjust those links.



Arun Patidar

Avatar

Level 1

Thanks @arunpatidar and @Dipti_Chauhan if I understand you correctly, you are saying the URLs need to be updated in the blueprint, but what if the blueprint is used for multiple sites?  For example following is a link component on one of the blueprint page, I changed the URL to remove the actual domain name for privacy.  So if I'm using this blueprint for both Mexico and Argentina, but the URL needs to be different for each site.  Mexico has to be http://domainname/es-mx/.... and Argentina has to be http://domainname/es-ar/....  

 

What do I need to do support these variations at the live copies without breaking the inheritance?

 

KevinWu1_3-1736408842740.png

 

Avatar

Community Advisor

Hi @KevinWu1 

No, we are not suggesting that URLs need to be updated in the master copy. Instead, relative URLs should be used to enable the automatic conversion of URLs.

 

When Live Copy pages are created:

  • AEM automatically adjusts relative URLs to fit the Live Copy's context.
  • Any changes in the master copy propagate to the Live Copies, including updates to links, as long as inheritance is maintained.
  • If the link points to another Live Copy page within a chapter, AEM will resolve it to the corresponding Live Copy URL.


Arun Patidar