Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Passing parameter in Internal Sling Redirection

umeshj24393
Level 4
Level 4

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

1 Accepted Solution
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

1 Reply
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post