Passing parameter in Internal Sling Redirection

Avatar

Avatar

umeshj24393

Avatar

umeshj24393

umeshj24393

16-04-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

17-04-2018

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

Answers (0)