diff --git a/packages/webui/components/notification-card.tsx b/packages/webui/components/notification-card.tsx index 7552d7d5..86d3e6d7 100644 --- a/packages/webui/components/notification-card.tsx +++ b/packages/webui/components/notification-card.tsx @@ -136,13 +136,19 @@ export const NotificationCard = ({ notification }: NotificationCardProps) => { const hasPreview = asset?.preview && (asset.proxyType === 'image' || asset.proxyType === 'video') - const handleClick = () => { +const handleClick = () => { if (kanbanTask?.id && team?.id) { navigate({ to: '/teams/$teamId/kanban', params: { teamId: team.id }, search: { taskId: kanbanTask.id }, }) + }else if(project?.id && asset?.id){ + //TODO: Perhaps it should be marked as read too when redirecting to it. + navigate({ + to: '/projects/$projectId/files/$fileId', + params: { projectId: project.id, fileId: asset.id }, + }) } }