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 0d9927d commit d5f294dCopy full SHA for d5f294d
packages/tests-unit/tests/core/routing/matcher.test.ts
@@ -266,6 +266,24 @@ describe("handleRedirects", () => {
266
267
expect(result).toBeUndefined();
268
});
269
+
270
+ it("should redirect with + character and query string", () => {
271
+ const event = createEvent({
272
+ url: "/foo",
273
+ });
274
275
+ const result = handleRedirects(event, [
276
+ {
277
+ source: "/foo",
278
+ destination: "/search?bar=hello+world&baz=new%2C+earth",
279
+ internal: true,
280
+ statusCode: 308
281
+ },
282
+ ]);
283
284
+ expect(result.statusCode).toEqual(308);
285
+ expect(result.headers.Location).toEqual("/search?bar=hello+world&baz=new%2C+earth");
286
287
288
289
describe("handleRewrites", () => {
0 commit comments