Hi @RenjuSh,
Configure Sling Resource Resolver mappings and make sure your components use mapping when rendering links.
OSGi config (Cloud: code-only, e.g., config.publish)
org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator.cfg.json
{
"resource.resolver.mapping": [
"/content/orgname/aem/:/"
]
}
OR
Via Dispatcher: Expose a short public path and internally rewrite it to the long JCR path.
httpd vhost (Dispatcher)
RewriteEngine On
# Public -> internal
RewriteRule ^/images/(.*)$ /content/orgname/aem/images/$1 [PT,L]
Dispatcher cache rules (so short paths cache):
/cache
{
/rules {
/0001 { /glob "/images/*" /type "allow" }
}
}
Then update your components/templates to use /images/... in markup. (Inbound rewrites alone won’t change the hover unless the HTML uses the short path.)
Santosh Sai

