@@ -170,7 +170,7 @@ export class NSLocationStrategy extends LocationStrategy {
170
170
if ( outlet && this . updateStates ( outlet , segmentGroup , this . currentUrlTree . queryParams ) ) {
171
171
this . currentOutlet = outlet ; // If states updated
172
172
} else if ( ! outlet ) {
173
- const rootOutlet = this . createOutlet ( "primary" , null , segmentGroup , null ) ;
173
+ const rootOutlet = this . createOutlet ( "primary" , null , segmentGroup , null , null , this . currentUrlTree . queryParams ) ;
174
174
this . currentOutlet = rootOutlet ;
175
175
}
176
176
@@ -615,7 +615,7 @@ export class NSLocationStrategy extends LocationStrategy {
615
615
segmentGroup : currentSegmentGroup ,
616
616
isRootSegmentGroup : false ,
617
617
isPageNavigation : isNewPage ,
618
- queryParams
618
+ queryParams : { ... queryParams }
619
619
} ;
620
620
621
621
if ( ! lastState || ! equalStateUrls ) {
@@ -656,7 +656,7 @@ export class NSLocationStrategy extends LocationStrategy {
656
656
segmentGroup : segmentGroup ,
657
657
isRootSegmentGroup : false ,
658
658
isPageNavigation : true , // It is a new OutletNode.
659
- queryParams
659
+ queryParams : { ... queryParams }
660
660
} ;
661
661
662
662
newOutlet . states = [ locationState ] ;
0 commit comments