[
https://issues.apache.org/jira/browse/SLING-11347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Norman closed SLING-11347.
-------------------------------
> SlingUriBuilder.createFrom(request) should preserve any mapped resource path
> ----------------------------------------------------------------------------
>
> Key: SLING-11347
> URL: https://issues.apache.org/jira/browse/SLING-11347
> Project: Sling
> Issue Type: Bug
> Reporter: Eric Norman
> Assignee: Eric Norman
> Priority: Minor
> Fix For: API 2.25.4
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Use Case:
> Use the SlingUriBuilder.createFrom(request) call from a servlet in order to
> create a SlingUri from the current request in order to change the selectors
> (or extension) and then redirect to that new uri value.
> Expected:
> When calling SlingUriBuilder.createFrom(request) for a mapped request path,
> the built SlingUri object should return the original mapped path from the
> getResourcePath() call instead of the resource path that was resolved from
> the mapped path.
> This should help to avoid accidentally switching from /folder/page1 to
> /content/folder/page1 in the SlingUri output.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)