We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9785c commit b0f666eCopy full SHA for b0f666e
src/templates/getHandler.js
@@ -109,6 +109,8 @@ const makeHandler =
109
bridge.listen()
110
111
return async (event, context) => {
112
+ // Ensure that paths are encoded - but don't double-encode them
113
+ event.path = new URL(event.path, event.rawUrl).pathname
114
// Next expects to be able to parse the query from the URL
115
const query = new URLSearchParams(event.queryStringParameters).toString()
116
event.path = query ? `${event.path}?${query}` : event.path
0 commit comments