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@curii.com>
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]));
}
};