File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ export class FileURIComponent {
151
151
if ( macroCondition ( isTesting ( ) ) ) {
152
152
// eslint-disable-next-line @typescript-eslint/no-explicit-any
153
153
base ??= ( this . router as any ) /* private API? */ ?. location ;
154
+ // @ts -expect-error private api
155
+ base = base . split ( '?' ) [ 0 ] ;
154
156
} else {
155
157
base ??= window . location . toString ( ) ;
156
158
}
@@ -182,6 +184,7 @@ export class FileURIComponent {
182
184
qps . delete ( 't' ) ;
183
185
qps . set ( 'format' , formatFrom ( format ) ) ;
184
186
187
+ // @ts -expect-error this works
185
188
if ( this . #qps?. c === qps . get ( 'c' ) && this . #qps?. format === qps . get ( 'format' ) ) {
186
189
// no-op, we should not have gotten here
187
190
// it's a mistake to have tried to have update QPs.
You can’t perform that action at this time.
0 commit comments