Hi All,
I am working on a Forge App and I am new to its APIs. The requirement was to open an external URL in my App. I tried to open the external page via a Pop-up or via redirect.
Later I learnt that, Forge is preventing popups and full page redirects due to security reasons. But a router API call [ router.open() ] can open the page in next page and for that the user has to give consent.
The router.open() API was working fine and it solved my issue. Now I want to close the tab that was opened with the router’s open method.
When I searched for solutions online, MDN documentation says, window.close() method will not close the tab that was not opened by any script (as in our case).
Now, is there any way that I can close the tab ? or is there any workaround to solve the issue?