OfficeDev / office-js-docs-reference

Microsoft Office JavaScript API Reference
https://learn.microsoft.com/javascript/api/overview
MIT License
120 stars 67 forks source link

javascript window.location.href #2106

Closed CodeCube0 closed 1 month ago

CodeCube0 commented 1 month ago

why if I do "window.location.href" from old outlook inside the plugin it opens the browser instead of following the redirect? Is there any solution to allow to follow the redirect with "window.location.href"

samantharamon commented 1 month ago

Hi @CodeCube0,

Thanks for reaching out.

Does window.location.href point to a domain other than the domain that hosts your add-in? If so, you'll need to specify it in the \ section of your manifest. Here are a few references that might help: