[arvados-workbench2] created: 2.6.3-35-g84161e96

git repository hosting git at public.arvados.org
Tue Jul 18 17:49:37 UTC 2023


        at  84161e969c13b42451752bd5f134b968d15c1001 (commit)


commit 84161e969c13b42451752bd5f134b968d15c1001
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Jul 18 13:46:50 2023 -0400

    20688: urldecode the redirect path before storing it
    
    Necessary because nginx url rewrites will turn the "+" into a "%2B",
    so we need to turn it back.  After more than an hour of messing with
    it, it's easier to fix workbench 2 than to fix nginx.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/src/common/redirect-to.ts b/src/common/redirect-to.ts
index 73c94843..e71ebde7 100644
--- a/src/common/redirect-to.ts
+++ b/src/common/redirect-to.ts
@@ -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]));
     }
 };
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list