Robert Muehsig
Robert Muehsig

Reputation: 5326

How to open a link in the "standard browser" from an Office Addin

It seems since Edge is now in place to render the Office.js based Office Addin we can't "force" the system to open a standard browser window.

Scenario:

Our Addin is hosted from https://company.com/webapp/officeaddin We would like to add a link which points to http://company.com/webapp/something and this should be opened in the normal browser.

Problem:

With the current Office.js release it always opens a embedded browser window. In theory this is nice, but unfortunately we have a download section there, where the user can initiate a typical file download and this is not working inside this embedded browser window.

enter image description here

The link is created like this:

<a target="_blank" href="https://company.com/webapp/something" class="btn btn-default btn-block"><i class="fa fa-link"></i> TEXT</a>

Is it possible to open the standard browser instead of this embedded browser from an Office Addin?

If not: Is there a way to "detect" that this the website is opened with this embedded browser so that we can avoid any links to the download stuff?

Upvotes: 3

Views: 1499

Answers (3)

Rick Kirkham
Rick Kirkham

Reputation: 9784

I'm not entirely clear on your scenario, but does this new troubleshooting note published last week help any?

Edge browser - Get errors trying to download PDF file

Upvotes: 0

redmoped
redmoped

Reputation: 1

have you tried using window.open(""). this should open the link in the default browser.

Upvotes: 0

Related Questions