mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Fix double encode (#5436)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
77e0b4526b
commit
4423246b58
@ -13,7 +13,7 @@ export function decodeChannelURI (value: string): [Ref<Doc>, Ref<Class<Doc>>] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function encodeChannelURI (_id: Ref<Doc>, _class: Ref<Class<Doc>>): string {
|
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 {
|
export function openChannel (_id: Ref<Doc>, _class: Ref<Class<Doc>>): void {
|
||||||
|
@ -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 {
|
export function encodeObjectURI (_id: Ref<Doc>, _class: Ref<Class<Doc>>): string {
|
||||||
return encodeURIComponent([_id, _class].join('|'))
|
return [_id, _class].join('|')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user