Sling Resource Resolver - Suffix Path | Community
Skip to main content
January 17, 2022
Solved

Sling Resource Resolver - Suffix Path

  • January 17, 2022
  • 1 reply
  • 2085 views

Hello Guys ,

 

I am trying to use a suffix path on my Page to render some content.
The Sling resource resolver fails to rewrite the URL only on these pages where we have a suffix.


The Sling resource resolver factory however rewrites the pages accurately whenever there is NO suffix.

Any pointers as to how to resolve the path with Suffix, would be really helpful.

 

Thanks

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 VeenaVikraman

Do you have a content rendering file/script which matches your suffix ? I am not sure how you are trying to access the page. Can you add some screenshots or examples for our better understanding? 

 

If you are new to AEM space and do not understand Sling Resolution and how the content is rendered when suffixes are there , you can start here https://issues.apache.org/jira/browse/SLING-387

Also check - https://communities.adobeconnect.com/p3o8uhllb3l/?launcher=false&fcsContent=true&pbMode=normal

 

I have tried to explain sling resolution here https://www.linkedin.com/pulse/sling-resource-resolution-aem-part-2-veena-vikraman/

 

Also check -  https://cqdump.wordpress.com/2019/01/07/how-does-sling-resolve-an-aem-page-to-the-correct-resource-type/

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-preference/m-p/249376/highlight/true#M60821

 

 

1 reply

VeenaVikraman
Community Advisor
VeenaVikramanCommunity AdvisorAccepted solution
Community Advisor
January 17, 2022

Do you have a content rendering file/script which matches your suffix ? I am not sure how you are trying to access the page. Can you add some screenshots or examples for our better understanding? 

 

If you are new to AEM space and do not understand Sling Resolution and how the content is rendered when suffixes are there , you can start here https://issues.apache.org/jira/browse/SLING-387

Also check - https://communities.adobeconnect.com/p3o8uhllb3l/?launcher=false&fcsContent=true&pbMode=normal

 

I have tried to explain sling resolution here https://www.linkedin.com/pulse/sling-resource-resolution-aem-part-2-veena-vikraman/

 

Also check -  https://cqdump.wordpress.com/2019/01/07/how-does-sling-resolve-an-aem-page-to-the-correct-resource-type/

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-preference/m-p/249376/highlight/true#M60821

 

 

harishdevAuthor
January 18, 2022

Hi @veenavikraman 

 

Thanks  for your response ;
Below are the activities i performed 

1. Updated the following URL Mappings /content/asset-share-commons/en/light/(.*)</$1 on Resource Resolver Factory.
2. Tried to access page /content/asset-share-commons/en/light/faqs.html via /faqs.html --> OK
3. Tried to access page /content/asset-share-commons/en/light/details.html/content/dam/img.png via /details.html/content/dam/img.png --> NOT OK

Please let me know if i am missing something

 

Thanks

 

 

 

VeenaVikraman
Community Advisor
Community Advisor
January 20, 2022

The last one obviously may not work. 

 

/content/asset-share-commons/en/light/details.html/content/dam/img.png   --> is this accessible directly ?