Allow redirection to same url if query string contains custom param – AWS basic auth

AWS Lambda Node Doc

Use case: 1

Url: http://test.com?abc=123
Redirection allowed : Yes
Redirection Url : http://test.com
Basic Auth required: No

Use case: 2

Url: http://test.com
Redirection allowed : No
Basic Auth required: Yes
Redirection Url : http://test.com