const url = getNavUrl(resource.uuid, getState().auth);
if (url[0] === "/") {
- window.open(`${window.location.origin}${url}`, "_blank");
+ window.open(`${window.location.origin}${url}`, "_blank", "noopener");
} else if (url.length) {
- window.open(url, "_blank");
+ window.open(url, "_blank", "noopener");
}
};
export const copyToClipboardAction = (resources: Array<any>) => (dispatch: Dispatch, getState: () => RootState) => {
- // Copy to clipboard omits token to avoid accidental sharing
+ // Copy link to clipboard omits token to avoid accidental sharing
let url = getNavUrl(resources[0].uuid, getState().auth, false);
let wasCopied;