New Example: Preserve Query Strings on redirect#48
New Example: Preserve Query Strings on redirect#48brittandeyoung wants to merge 4 commits intoaws-samples:mainfrom
Conversation
|
It would be great to have this merged, thanks! |
|
For anyone finding this, with the runtime v2, it looks like you can just use the querystring prop as string: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.html#:~:text=JavaScript%20runtime%202.0.-,Query%20string,-Note (see the |
|
@kurtextrem While it would have been great for AWS to provide a If you look at the docs (or just Which does NOT work with the |
Issue #, if available:
Closes #11
Description of changes:
This PR includes an example and tests for preserving query strings and url when performing a redirect.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.