Adobe Global Community

Embedding Resources in Proxied Client Libraries

Published on by Tyler Maynard on
If you’re planning on moving towards Adobe Experience Managers recommended pattern for clientlibs in AEM 6.3+, by storing all clientlibs in ‘/apps’ and setting ‘allowProxy=“{Boolean}true”’ so that they will be proxied by the new ‘/etc.clientlibs/’ servlet, you must store referenced assets (like images) under a folder named ‘resources’. Although this is not explicitly stated in the documentation, using any other folder name will not work. As you can see in the image above, the Using Client-Side Libraries documentation examples DO use this pattern, but they don’t make any explicit statements regarding the folder naming requirements. When trying to use a folder named ‘assets’, all requests were simply generating 404s. It took me a moment to find out why. It appears that there is a debug flag you can enable which should bypass the restriction of being called ‘resources’, though that’s obviously not a long-term fix.


comments powered by Disqus