We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399fbc7 commit f774112Copy full SHA for f774112
1 file changed
src/client.ts
@@ -271,8 +271,9 @@ export class Grid {
271
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
272
273
const defaultQuery = this.defaultQuery();
274
- if (!isEmptyObj(defaultQuery)) {
275
- query = { ...defaultQuery, ...query };
+ const pathQuery = Object.fromEntries(url.searchParams);
+ if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
276
+ query = { ...pathQuery, ...defaultQuery, ...query };
277
}
278
279
if (typeof query === 'object' && query && !Array.isArray(query)) {
0 commit comments