Passing parameter in Internal Sling Redirection | Community
Skip to main content
Level 4
Apr 16, 2018 2:23 PM UTC
Solved

Passing parameter in Internal Sling Redirection

Hi,

can we configure internal sling redirection with URL parameter?

When I configured like this :-

sling:internalRedirect = /content/action-url?action=user

it does not work.

But After removing the parameter from URL, it works.

Any Suggestion?

Thanks

Umesh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Apr 17, 2018 10:48 AM UTC

Sling's mapping just cares for the mapping the request path to a resource. It does not care at all for request queries and query parameters. So it neither takes parameters into account for mapping nor is it able to magically add request parameters to requests.

More details:- https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html

More Reference:- We.Retail Sling Mappings (/etc/map/http) · GitHub

Kautuk Sahni

2 replies

New Participant
Jun 14, 2023 6:17 PM UTC

By any chance did you get an answer for this??

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Apr 17, 2018 10:48 AM UTC

Sling's mapping just cares for the mapping the request path to a resource. It does not care at all for request queries and query parameters. So it neither takes parameters into account for mapping nor is it able to magically add request parameters to requests.

More details:- https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html

More Reference:- We.Retail Sling Mappings (/etc/map/http) · GitHub

Translate
Kautuk Sahni