20688: urldecode the redirect path before storing it
[arvados-workbench2.git] / src / common / redirect-to.ts
index 73c9484323a76169dc43f60bd210f16dfcf2e679..e71ebde7f15e35d757a2e542c5c0419591fe8fd9 100644 (file)
@@ -39,7 +39,7 @@ export const storeRedirects = () => {
     const redirectStoreKey = redirectKey === REDIRECT_TO_KEY ? REDIRECT_TO_PREVIEW_KEY : redirectKey;
 
     if (localStorage && redirectKey && redirectStoreKey) {
-        localStorage.setItem(redirectStoreKey, href.split(`${redirectKey}=`)[1]);
+        localStorage.setItem(redirectStoreKey, decodeURIComponent(href.split(`${redirectKey}=`)[1]));
     }
 };