diff --git a/plugins/tracker-resources/src/components/issues/IssueNotification.svelte b/plugins/tracker-resources/src/components/issues/IssueNotification.svelte index c3288bdf33..581ba46d32 100644 --- a/plugins/tracker-resources/src/components/issues/IssueNotification.svelte +++ b/plugins/tracker-resources/src/components/issues/IssueNotification.svelte @@ -10,7 +10,8 @@ IconInfo, Notification, NotificationSeverity, - showPanel + navigate, + parseLocation } from '@hcengineering/ui' import { fade } from 'svelte/transition' @@ -73,8 +74,12 @@ } } const handleIssueOpened = () => { - if (issue) { - showPanel(tracker.component.EditIssue, issue._id, issue._class, 'content') + if (params?.issueUrl) { + const url = new URL(params?.issueUrl) + + if (url.origin === window.location.origin) { + navigate(parseLocation(url)) + } } onRemove() @@ -102,7 +107,7 @@ {/if} {#if issue} - + {/if}
{subTitle}