Expand my Community achievements bar.

SOLVED

Sling Resource Resolver - Suffix Path

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-t...

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-...

 

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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-t...

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-resource-resolution-...

 

 

Avatar

Level 2

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

 

 

 

Avatar

Community Advisor

The last one obviously may not work. 

 

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

Avatar

Level 2

Yes this indeed works --- /content/asset-share-commons/en/light/details.html/content/dam/img.png