X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a23cfd6defb8dab9ac9afe13034f7b667f07acca..refs/heads/19865-search-clearing-fix:/src/store/open-in-new-tab/open-in-new-tab.actions.ts diff --git a/src/store/open-in-new-tab/open-in-new-tab.actions.ts b/src/store/open-in-new-tab/open-in-new-tab.actions.ts index c465aae8..6b9db6a5 100644 --- a/src/store/open-in-new-tab/open-in-new-tab.actions.ts +++ b/src/store/open-in-new-tab/open-in-new-tab.actions.ts @@ -21,7 +21,9 @@ export const copyToClipboardAction = (resource: any) => (dispatch: Dispatch, get // Copy to clipboard omits token to avoid accidental sharing const url = getNavUrl(resource.uuid, getState().auth, false); - if (url) { + if (url[0] === '/') { + copy(`${window.location.origin}${url}`); + } else if (url.length) { copy(url); } };