We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7608d8b commit d7ab66fCopy full SHA for d7ab66f
src/client.ts
@@ -382,8 +382,9 @@ export class Kernel {
382
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
383
384
const defaultQuery = this.defaultQuery();
385
- if (!isEmptyObj(defaultQuery)) {
386
- query = { ...defaultQuery, ...query };
+ const pathQuery = Object.fromEntries(url.searchParams);
+ if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
387
+ query = { ...pathQuery, ...defaultQuery, ...query };
388
}
389
390
if (typeof query === 'object' && query && !Array.isArray(query)) {
0 commit comments