We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 884f203 commit 4463ff7Copy full SHA for 4463ff7
1 file changed
src/client.ts
@@ -290,8 +290,9 @@ export class CasParser {
290
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
291
292
const defaultQuery = this.defaultQuery();
293
- if (!isEmptyObj(defaultQuery)) {
294
- query = { ...defaultQuery, ...query };
+ const pathQuery = Object.fromEntries(url.searchParams);
+ if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
295
+ query = { ...pathQuery, ...defaultQuery, ...query };
296
}
297
298
if (typeof query === 'object' && query && !Array.isArray(query)) {
0 commit comments