I currently have an outlook add-in using Office.js and I could not find a solution on how to open a url in the computers default browser. I looked over the Open an html page in a default browser from an add-in but none of the solutions helped me where it was indicated to open a new questions if we still have issues.
Currently I have tried to open the url like this:
<div
className={className}
onClick={() => window.open(url)}
>
{children}
</div>
and
<a
href={url}
target="_blank"
rel="noopener noreferrer"
>
{children}
</a>
Unfortunately, both of this examples opens a office dialog with the browser embedded. The only weird issue is that on the development build, it always opened correct, but not in production. (Office 365 on windows 10)