The router object enables you to navigate the host Atlassian app to another page.
The navigate method allows you to navigate the host window to a given URL.
If you’re linking to an external site, the user is prompted before opening the link in a new tab.
If the user declines to proceed, the returned Promise is rejected.
If you’re using relative URLs (starts with /), the user won’t be prompted.
1 2function navigate(url: string): Promise<void>;
1 2import { router } from '@forge/bridge'; router.navigate('/browse/ISSUE-1234'); router.navigate('https://example.com');
The open method allows you to open a new window to a given URL.
If you’re linking to an external site, the user is prompted before opening the link in a new window.
If the user declines to proceed, the returned Promise is rejected.
If you’re using relative URLs (starts with /), the user won’t be prompted.
1 2function open(url: string): Promise<void>;
1 2import { router } from '@forge/bridge'; router.open('/browse/ISSUE-1234'); router.open('https://example.com');
The reload method allows you to reload the host window.
1 2function reload(): Promise<void>;
1 2import { router } from '@forge/bridge'; router.reload();
Rate this page: