From 4423246b5819c3a762dcff92930ef27ab564f213 Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 23 Apr 2024 19:44:33 +0400 Subject: [PATCH] Fix double encode (#5436) Signed-off-by: Kristina Fefelova --- plugins/chunter-resources/src/navigation.ts | 2 +- plugins/notification/src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/chunter-resources/src/navigation.ts b/plugins/chunter-resources/src/navigation.ts index c090a0bb85..1fcc8fcfe3 100644 --- a/plugins/chunter-resources/src/navigation.ts +++ b/plugins/chunter-resources/src/navigation.ts @@ -13,7 +13,7 @@ export function decodeChannelURI (value: string): [Ref, Ref>] { } function encodeChannelURI (_id: Ref, _class: Ref>): string { - return encodeURIComponent([_id, _class].join('|')) + return [_id, _class].join('|') } export function openChannel (_id: Ref, _class: Ref>): void { diff --git a/plugins/notification/src/utils.ts b/plugins/notification/src/utils.ts index e16e5d7a46..2ede33332c 100644 --- a/plugins/notification/src/utils.ts +++ b/plugins/notification/src/utils.ts @@ -20,5 +20,5 @@ export function decodeObjectURI (value: string): [Ref, Ref>] { } export function encodeObjectURI (_id: Ref, _class: Ref>): string { - return encodeURIComponent([_id, _class].join('|')) + return [_id, _class].join('|') }