Sling Resource Resolver - Suffix Path | Community
Skip to main content
Level 2
Jan 17, 2022 7:36 AM UTC
Solved

Sling Resource Resolver - Suffix Path

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.
VeenaVikraman
VeenaVikramanAccepted solution
New Participant
Jan 17, 2022 7:46 AM UTC

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

 

 

4 replies

VeenaVikraman
VeenaVikramanAccepted solution
New Participant
Jan 17, 2022 7:46 AM UTC

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

 

 

Translate
harishdevAuthor
Level 2
Jan 18, 2022 2:21 PM UTC

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

 

 

 

Translate
VeenaVikraman
New Participant
Jan 20, 2022 9:44 AM UTC

The last one obviously may not work. 

 

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

Translate