You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2021/09/22 04:43:00 UTC

[jira] [Updated] (SLING-4860) Vanity Path cannot be used for MergedResource (or virtual resource)

     [ https://issues.apache.org/jira/browse/SLING-4860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-4860:
------------------------------------
    Component/s:     (was: Engine)
                 ResourceResolver

> 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: ResourceResolver
>            Reporter: Christanto
>            Priority: Major
>
> 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
(v8.3.4#803005)