How to get siteUrl from useProductContext?

Hi, is there any way to get the current siteUrl within Forge UI Kit?
e.g. https://my-site.atlassian.net/

I was looking around at this import

  • import { useProductContext } from @forge/ui

As well as this

  • const [ siteUrl ] = useProductContext()

But the siteUrl doesn’t seem to work (or at least it returns empty value)

I did also look at this documentation, and siteUrl doesn’t seem to be there:

However, I did find this variable in here @ Line 61:

Was this variable removed completely from useProductContext?
Is there any other way to get the site URL?

Please comment on the following ticket so we can gather interest in providing this in the environment.

The ticket also has a workaround.

1 Like

Thanks for the link, I have voted the ticket. :slight_smile: