Integrating Custom UI navigation with AtlasKit links

Has anybody tried to use @atlaskit’s AppProvider with a custom routerLinkComponent in a Forge app?

  <AppProvider routerLinkComponent={MyRouterLinkComponent}>
     ...
  </AppProvider>

It’s a way of rendering @atlaskit links as React Router links. Left-clicking those links works fine, but if I right-click a link and select “Open in a new tab”, the URL on the new tab is this:

http://localhost:8000/[object%20Object]

See How to get the URL of a Forge app in Jira?

In short, the right-click capability just isn’t there yet; not until there’s a way to obtain the Forge app’s URL.

You can a use a button to go to the new link instead of using open in new tab this should work

1 Like