About relative url path for router in Custom UI

Hi! I wish to use the router.navigate method to redirect to a confluence space page but the relative url path for router.navigate method point towards “/wik/home” I wish to have it point towards “/wiki” instead this is because I don’t want to always request the user permission to open a url path that is in their domain. Please! Is there a quick solution to this issue at the moment? Thanks.

2 Likes

I’m not sure I’m following your question 100%, could you share the code snippet that currently calls navigate?

According to the docs for navigate:

If you’re using relative URLs (starts with /), the user won’t be prompted.

Am I wrong in thinking that so long as you do something like the following the user won’t be prompted:

router.navigate('/wiki');
1 Like

@bentley Yes you are right it works this way and it has solved my issue, thanks.

1 Like