@@ -74,7 +74,6 @@ test.describe("Next Config Redirect", () => {
7474 } ) ;
7575 test ( "Should properly encode the Location header for redirects with query params" , async ( {
7676 page,
77- baseURL,
7877 } ) => {
7978 await page . goto ( "/config-redirect" ) ;
8079 const responsePromise = page . waitForResponse ( ( response ) => {
@@ -86,17 +85,14 @@ test.describe("Next Config Redirect", () => {
8685
8786 const locationHeader = res . headers ( ) . location ;
8887 expect ( locationHeader ) . toBe (
89- ` ${ baseURL } /config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC` ,
88+ " /config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC" ,
9089 ) ;
9190 expect ( res . status ( ) ) . toBe ( 307 ) ;
9291
9392 const searchParams = page . getByTestId ( "searchParams" ) ;
9493 await expect ( searchParams ) . toHaveText ( "q: äöå€" ) ;
9594 } ) ;
96- test ( "Should respect already encoded query params" , async ( {
97- page,
98- baseURL,
99- } ) => {
95+ test ( "Should respect already encoded query params" , async ( { page } ) => {
10096 await page . goto ( "/config-redirect" ) ;
10197 const responsePromise = page . waitForResponse ( ( response ) => {
10298 return response . status ( ) === 307 ;
@@ -107,7 +103,7 @@ test.describe("Next Config Redirect", () => {
107103
108104 const locationHeader = res . headers ( ) . location ;
109105 expect ( locationHeader ) . toBe (
110- ` ${ baseURL } /config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC` ,
106+ " /config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC" ,
111107 ) ;
112108 expect ( res . status ( ) ) . toBe ( 307 ) ;
113109
0 commit comments