From 0688a4dd23cfcdf0b179aac4104bcb9e236ae880 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 16 Mar 2023 17:36:05 +0600 Subject: [PATCH] TSK-851 Short link URI encoded should resolve (#2751) Signed-off-by: Denis Bykhov --- packages/ui/src/location.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/location.ts b/packages/ui/src/location.ts index 91b2481640..03b2dcee48 100644 --- a/packages/ui/src/location.ts +++ b/packages/ui/src/location.ts @@ -56,7 +56,7 @@ function parseQuery (query: string): Record { if (query.length === 0 || !query.startsWith('?')) { return {} } - query = query.substring(1) + query = decodeURIComponent(query).substring(1) const vars = query.split('&') const result: Record = {} for (let i = 0; i < vars.length; i++) { @@ -91,9 +91,9 @@ function parsePath (path: string): string[] { function parseHash (hash: string): string { if (hash.startsWith('#')) { - return hash.substring(1) + return decodeURIComponent(hash.substring(1)) } - return hash + return decodeURIComponent(hash) } // ------------------------