onAiAssistantLinkClicked
Home > @gooddata/sdk-pluggable-application-model > IPluggableApplicationMountHandle > onAiAssistantLinkClicked
IPluggableApplicationMountHandle.onAiAssistantLinkClicked property
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Delegates an AI-assistant link click to the application so it can handle navigation in-app.
Signature:
onAiAssistantLinkClicked?: (link: {
type?: string;
id?: string;
itemUrl?: string;
newTab?: boolean;
}) => boolean;
Remarks
On hosted routes the host owns the chat, so links clicked inside it are handled by the host by default (open in a tab / navigate). An embedded application can intercept them instead — e.g. an embedded dashboard opening a visualization as an in-place overlay rather than navigating away. Return true if the application handled it (the host suppresses its own navigation); return false to let the host perform default link handling.