[ARVADOS-WORKBENCH2] updated: 2.1.0-57-gb1a33418

Git user git at public.arvados.org
Wed Nov 11 14:57:41 UTC 2020


Summary of changes:
 src/views-components/context-menu/actions/helpers.ts | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

       via  b1a33418fbebefb360278baa97caebcfcbe53f31 (commit)
      from  ac09b3b5c8ecd122b778bb9c17f2aef1f00f6b05 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b1a33418fbebefb360278baa97caebcfcbe53f31
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date:   Wed Nov 11 15:56:47 2020 +0100

    16005: Copy to clipboard url fix
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>

diff --git a/src/views-components/context-menu/actions/helpers.ts b/src/views-components/context-menu/actions/helpers.ts
index 578af205..0ad2dc3c 100644
--- a/src/views-components/context-menu/actions/helpers.ts
+++ b/src/views-components/context-menu/actions/helpers.ts
@@ -2,8 +2,6 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { REDIRECT_TO_APPLY_TO_PATH } from "~/common/redirect-to";
-
 export const sanitizeToken = (href: string, tokenAsQueryParam = true): string => {
     const [prefix, suffix] = href.split('/t=');
     const [token1, token2, token3, ...rest] = suffix.split('/');
@@ -17,5 +15,5 @@ export const getClipboardUrl = (href: string, shouldSanitizeToken = true): strin
     const { origin } = window.location;
     const url = shouldSanitizeToken ? sanitizeToken(href, false) : href;
 
-    return `${origin}${!shouldSanitizeToken ? `?${REDIRECT_TO_APPLY_TO_PATH}=true&` : `?`}redirectTo=${url}`;
+    return shouldSanitizeToken ? `${origin}?redirectTo=${url}` : `${origin}${url}`;
 };

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list