Forge Custom UI iframe links

Hi,

Is there any way to let links from a Custom UI macro redirect the parent page to another Confluence site?
I had no such problem using the UI kit. Since the Custom UI runs in an iframe I understand that this might be intentionally prevented, but I think it would be great to let us use these links with conditions(same domain as the baseurl or such)

Thank you for your answer.

Hi @LeventeRti ,

Have you already tried using the router from the Custom UI Bridge?

import { router } from '@forge/bridge';

router.navigate('/browse/ISSUE-1234');
router.navigate('https://example.com');

Cheers,
Sven

3 Likes

Hi Sven,

Thank you very much; I have somehow completely missed that page; it is possible that it was too much of a Friday for me.

Cheers, Levente

1 Like