Rewrite Reference Links Inside Experience Fragments
Hi,
Have you ever experienced this problem? Whenever you create a live copy/roll-out a master page, all the reference links inside a page get updated to the live copy equivalent links automatically; however, this is applicable only for the links which are stored inside a component property or page property in a page. If there are links referenced in editable template structure content or inside an experience fragment, which is used in a master page, it won’t be updated to the live copy equivalent link on roll-out. This is because these are shared or global content, which will be stored in one location (“/conf” or “/content/experience-fragments”).
We found a Solution for this problem here in the below link, but couldn't able to proceed clearly, can anyone please explain step by step or help us understand this clearly, so that we will try to implement the same and make it work for any Experience fragment which we gonna create even in future.
what exactly is happening when we use this code? After implementing, how exactly we need to do to test the reference links changed. please help us. Thanks in Advance.!