From 0e8f8d74cc994139b4fdc51b20f30856412fe654 Mon Sep 17 00:00:00 2001 From: "SN\\plastic" Date: Wed, 13 Mar 2024 12:55:45 +0100 Subject: [PATCH] open ctd editor on new tab --- .../view-controls/common/view-title.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/sensenet/src/components/view-controls/common/view-title.tsx b/apps/sensenet/src/components/view-controls/common/view-title.tsx index e646a5335..274a73c42 100644 --- a/apps/sensenet/src/components/view-controls/common/view-title.tsx +++ b/apps/sensenet/src/components/view-controls/common/view-title.tsx @@ -137,16 +137,15 @@ export const ViewTitle: React.FunctionComponent = (props) => { title={`Open ${contentDisplayName} CTD`} onClick={async () => { const content = await getContentTypeId(props.content!.Type) - history.push( - getPrimaryActionUrl({ - content, - repository, - location: history.location, - uiSettings, - snRoute, - removePath: true, - }), - ) + const url = getPrimaryActionUrl({ + content, + repository, + location: history.location, + uiSettings, + snRoute, + removePath: true, + }) + window.open(url, '_blank') }} className={globalClasses.centered}>