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 2018/03/08 09:48:00 UTC
[jira] [Resolved] (SLING-2790) Need a way to get the resource of
the original request in a subcomponent
[ https://issues.apache.org/jira/browse/SLING-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2790.
-------------------------------------
Resolution: Won't Fix
> Need a way to get the resource of the original request in a subcomponent
> ------------------------------------------------------------------------
>
> Key: SLING-2790
> URL: https://issues.apache.org/jira/browse/SLING-2790
> Project: Sling
> Issue Type: Improvement
> Components: API
> Reporter: Axel Hanikel
> Priority: Minor
>
> - I have created a component at /apps/training/components/tasklist/tasklist.jsp.
> - I have a page node at /content/training with a sling:resourceType of training/components/page
> - That page has a subnode /content/training/content/tasklist with a sling:resourceType of training/components/tasklist (the tasklist.jsp from above)
> In the tasklist.jsp, I would like to get the path to the resource of the original HTTP request, i.e. /content/training. I expected to get it using slingRequest.getRequestPathInfo().getResourcePath() but that gets me the path to the current resource (/content/training/content/tasklist), not the path to the request.
> Having the original resource in a predefined variable or a call like slingRequest.getOriginalRequestPathInfo() would be very helpful.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)