Language Master Links in Experience Fragments | Community
Skip to main content
Sean-McK
Level 4
May 17, 2022 12:33 PM UTC
Solved

Language Master Links in Experience Fragments

I have xf for my header and have language master:

 

Experience Fragments

Site Fragments -> Language Master -> en -> site -> Header -> Header

                         -> us -> en -> site -> Header -> Header

 

Sites

Site -> Language Master -> en -> page1

       -> us -> en -> page1

 

Now when I create a link in the experience fragment to page 1 of english like I would do in sites like /content/site/language-master/en/page1 it doesn't fix the link in the rollout. so in the xf of en/site/header/header you will see /content/site/language-master/en/page1 and it should be /content/site/us/en/page1

 

we are using AEM as a cloud service. Is there a solution or am I going to have to find a solution. Seems like this should be fixed.

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
New Participant
May 17, 2022 2:13 PM UTC

@sean-mck  We also faced similar issue and on raising the adobe ticket. Up on rollout to other sites the links in the XF will not be updated and this is an issue in cloud environment. I recommond to follow below options

 

1. As part of rollout, create a custom rollout config to update the url from the back end or 

2. As part of the header slingmodel you can update the URL from model class

 

Note: make sure to read the country and language properties from the page properties or XF properties and not from the URL

3 replies

Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
New Participant
May 17, 2022 2:13 PM UTC

@sean-mck  We also faced similar issue and on raising the adobe ticket. Up on rollout to other sites the links in the XF will not be updated and this is an issue in cloud environment. I recommond to follow below options

 

1. As part of rollout, create a custom rollout config to update the url from the back end or 

2. As part of the header slingmodel you can update the URL from model class

 

Note: make sure to read the country and language properties from the page properties or XF properties and not from the URL

Translate
arunpatidar
New Participant
May 17, 2022 1:14 PM UTC

Hi,

AEM Core experience fragment support the localization, can you try with it?

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/experience-fragment.html?lang=en

Translate
Arun Patidar
Level 4
May 17, 2022 12:52 PM UTC

could you please maintain the same structure in xf and page .

Ex-  

page -   us -> en -> page1

xf         us -> en -> Header

please remove site folder from xf and try.

 

 

Translate