Skip to content

Commit

Permalink
fix(plugin-history-sync): decode search params
Browse files Browse the repository at this point in the history
  • Loading branch information
orionmiz committed Feb 8, 2024
1 parent f96cb4a commit 5a490a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/plugin-history-sync/src/makeTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ export function makeTemplate<T>(
return null;
}

return {
const params = {
...searchParams,
...(decode ? decode(pathParams) : pathParams),
...pathParams,
};

return decode ? decode(params) : params;
},
variableCount: (pattern as any).names.length,
};
Expand Down

0 comments on commit 5a490a7

Please sign in to comment.