You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Nagz <na...@gmail.com> on 2014/10/09 09:09:21 UTC
Re: /etc/map to serve shorten url
Hi,
Is there way to hide /jcr:content/renditions from the url. Just an opposite
of your scenario, below is an example
/content/dam/myimage/someimage/jcr:content/renditions/someimage150x160.png
Expected result:
/content/dam/myimage/someimage/someimage150x160.png
or
/content/dam/myimage/someimage/$1/$2/someimage150x160.png
any inputs or help in finding the solution will be higly appreciated.
--
View this message in context: http://apache-sling.73963.n3.nabble.com/etc-map-to-serve-shorten-url-tp1704238p4041415.html
Sent from the Sling - Users mailing list archive at Nabble.com.
Re: /etc/map to serve shorten url
Posted by Alexander Klimetschek <ak...@adobe.com>.
Knowing this is about CQ assets in particular, and I hate those URLs as well: maybe you address the asset and add a suffix for the rendition, like
/content/dam/myimage.jpg/somerendition150x150.png
Not sure if that works stable, but it's something you can add yourself (resource type dam:Asset, if no suffix, redirect to the normal asset servlet).
Cheers,
Alex
On 09.10.2014, at 00:09, Nagz <na...@gmail.com> wrote:
> Hi,
>
> Is there way to hide /jcr:content/renditions from the url. Just an opposite
> of your scenario, below is an example
>
> /content/dam/myimage/someimage/jcr:content/renditions/someimage150x160.png
>
> Expected result:
> /content/dam/myimage/someimage/someimage150x160.png
> or
> /content/dam/myimage/someimage/$1/$2/someimage150x160.png
>
> any inputs or help in finding the solution will be higly appreciated.
>
>
>
> --
> View this message in context: http://apache-sling.73963.n3.nabble.com/etc-map-to-serve-shorten-url-tp1704238p4041415.html
> Sent from the Sling - Users mailing list archive at Nabble.com.