[ 
https://issues.apache.org/jira/browse/SLING-4860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14629636#comment-14629636
 ] 

Carsten Ziegeler commented on SLING-4860:
-----------------------------------------

If the resource provider for merged resources would support queries, it would 
work ootb. however, I guess this is far down the road (see SLING-4752)

In general, I don't think that requests should target /libs or /apps - they 
should target content stored somewhere else which then invokes scripts through 
resource type resolution from /apps or /libs.

> Vanity Path cannot be used for MergedResource (or virtual resource)
> -------------------------------------------------------------------
>
>                 Key: SLING-4860
>                 URL: https://issues.apache.org/jira/browse/SLING-4860
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>            Reporter: Christanto
>
> Currently the vanity path config is specified at the target node:
> {code}
> + /libs/mypage
>   - jcr:mixinTypes = "sling:VanityPath"
>   - sling:vanityOrder = 100
>   - sling:vanityPath = "/index"
> {code}
> The page can be then accessed at {{/libs/mypage.html}} or {{/index.html}}.
> Since Resource Merger, the preferable path to access the content is actually 
> {{/mnt/overlay/mypage.html}}. However since the vanity path config can only 
> specified at the target node, we cannot do that.
> My suggestion is to expose one more optional property to {{sling:VanityPath}} 
> to specify the target so that the config can be specified anywhere.
> {code}
> + /libs/mypage
>   - jcr:mixinTypes = "sling:VanityPath"
>   - sling:vanityOrder = 100
>   - sling:vanityPath = "/index"
>   - sling:target = "/mnt/overlay/mypage"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to