File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function bootstrap(): void
2222 */
2323 $ hostname = parse_url ($ url , PHP_URL_HOST );
2424
25- $ this ->setTargetUrl ((string ) str ($ url )->replace ( $ hostname , $ domain ));
25+ $ this ->setTargetUrl ((string ) str ($ url )->replaceFirst ( ' :// ' . $ hostname , ' :// ' . $ domain ));
2626
2727 return $ this ;
2828 });
Original file line number Diff line number Diff line change 1919 })->name ('home ' );
2020
2121 Route::get ('/redirect ' , function () {
22- return redirect ()->route ('home ' )->domain ('abcd ' );
22+ return redirect ()->route ('home ' , [ ' email ' => ' foo@localhost ' ] )->domain ('abcd ' );
2323 });
2424
2525 $ tenant = Tenant::create ();
2626 tenancy ()->initialize ($ tenant );
2727
2828 pest ()->get ('/redirect ' )
29- ->assertRedirect ('http://abcd/foobar ' );
29+ ->assertRedirect ('http://abcd/foobar?email=foo%40localhost ' );
3030});
3131
3232test ('tenant route helper generates correct url ' , function () {
You can’t perform that action at this time.
0 commit comments