Fix double encode (#5436)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-04-23 19:44:33 +04:00 committed by GitHub
parent 77e0b4526b
commit 4423246b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export function decodeChannelURI (value: string): [Ref<Doc>, Ref<Class<Doc>>] {
}
function encodeChannelURI (_id: Ref<Doc>, _class: Ref<Class<Doc>>): string {
return encodeURIComponent([_id, _class].join('|'))
return [_id, _class].join('|')
}
export function openChannel (_id: Ref<Doc>, _class: Ref<Class<Doc>>): void {

View File

@ -20,5 +20,5 @@ export function decodeObjectURI (value: string): [Ref<Doc>, Ref<Class<Doc>>] {
}
export function encodeObjectURI (_id: Ref<Doc>, _class: Ref<Class<Doc>>): string {
return encodeURIComponent([_id, _class].join('|'))
return [_id, _class].join('|')
}