From 5a490a7c2cabc70ea86f093e9d4807a342b03a2b Mon Sep 17 00:00:00 2001 From: "JH.Lee" Date: Thu, 8 Feb 2024 18:21:24 +0900 Subject: [PATCH] fix(plugin-history-sync): decode search params --- extensions/plugin-history-sync/src/makeTemplate.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/plugin-history-sync/src/makeTemplate.ts b/extensions/plugin-history-sync/src/makeTemplate.ts index c0921da3a..a92351005 100644 --- a/extensions/plugin-history-sync/src/makeTemplate.ts +++ b/extensions/plugin-history-sync/src/makeTemplate.ts @@ -92,10 +92,12 @@ export function makeTemplate( return null; } - return { + const params = { ...searchParams, - ...(decode ? decode(pathParams) : pathParams), + ...pathParams, }; + + return decode ? decode(params) : params; }, variableCount: (pattern as any).names.length, };