navigate takes a destination and goes there in the current tab. For text the user clicks, prefer AttioLink, which gives them a real link.
Available everywhere your client code runs: pages, record tabs, dialogs, record actions and the workspace settings page.
Example
src/app/extensions/create-follow-up/extension.tsx
AttioLink isn’t available, a button is the way to offer a link:
src/app/settings/page.tsx
Leaving a dialog
Ifnavigate is called while one of your app’s dialogs is open, the user is asked to confirm before the dialog closes and the navigation happens. Cancelling leaves them in the dialog. This is the one place navigation prompts; from pages, tabs and actions it is immediate.
API
TypeScript
Arguments
Destination
required
Where to go, built with
Destinations.If the destination can’t be resolved, nothing happens and an error is logged to the browser
console. navigate never throws.