File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -787,7 +787,9 @@ public function getCallback($request): mixed
787787 if (preg_match ($ routeRegex , $ url , $ matches )) {
788788 $ params = $ this ->extractRouteParameters ($ route , $ matches );
789789 if ($ params !== false ) {
790- $ request ->setRouteParams ($ params );
790+ $ existing = $ request ->getRouteParams ();
791+ $ merged = array_merge ($ existing , $ params );
792+ $ request ->setRouteParams ($ merged );
791793 return $ callback ;
792794 }
793795 }
@@ -830,6 +832,8 @@ protected function matchesDomain(string $domain, $request): bool
830832 $ existing = $ request ->getRouteParams ();
831833 $ existing [$ m [1 ]] = $ hostMatch [1 ];
832834 $ request ->setRouteParams ($ existing );
835+ $ request ->merge ([$ m [1 ] => $ hostMatch [1 ]]);
836+
833837 return true ;
834838 }
835839
You can’t perform that action at this time.
0 commit comments