Skip to main content
Level 2
July 19, 2023
Solved

Content Fragment Link field not bring transformed

Hi Team,

 

I have a Link field added to content fragment. When I give the link as /content/siteA/us/en/page.html, it is not being transformed to /page. Please provide suggestions on how to get the Link field to be resolved correctly.

Any help is highly appreciated.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Tanika02
Tanika02Accepted solution
Level 7
July 20, 2023

Hello @silvia_joyce_balraj - 

 

In AEM, when you use a Link field in a Content Fragment, the links may not be automatically resolved to their shortened or friendly URLs.

 

To get the Link field to be resolved correctly, you may choose from following options : 

 

4 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
July 19, 2023

I think you need to configure the Apache Sling Resource Resolver Factory. Please refer to this link in case you don't know how to use it: 

 

https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html 

https://blog.3sharecorp.com/shortening-urls-in-aem 

Translate
Esteban Bustamante
Tanika02
Tanika02Accepted solution
Level 7
July 20, 2023

Hello @silvia_joyce_balraj - 

 

In AEM, when you use a Link field in a Content Fragment, the links may not be automatically resolved to their shortened or friendly URLs.

 

To get the Link field to be resolved correctly, you may choose from following options : 

 

Translate
aanchal-sikka
Community Advisor
Community Advisor
July 20, 2023

hello @silvia_joyce_balraj 

 

Is the link shortening working for all other links in the Site? If yes, please check with someone in the team, how it has been implemented for the ones working, and debug accordingly.

 

If the team is working on Link shortening for the first time, please refer to following link. It explain step-by-step whats needed.

https://helpx.adobe.com/in/experience-manager/kb/multi-domain-management-aem-mappings-for-url-shortening---aem-6-.html 

Translate
Aanchal Sikka
Level 3
April 2, 2024

Hi @silvia_joyce_balraj, 

I am facing the same issue. Which approach listed by @tanika02 solved the issue for you?

We re on AEM 6.5.16 on-prem.

--

Krass

Translate