Forum Discussion

robertpnl's avatar
robertpnl
Copper Contributor
Feb 01, 2023

Weblink of Message object doesn't work anymore with 'Window.open()' since yesterday

Hello,

 

The 'weblink' property with url to an Outlook message (created by Mail API) was changed in behaviour since yesterday?

 

If I use the Outlook weblink for a popup with javascript 'window.open(...)' for example, the returned object references no longer for the popup because of redirect maybe?

 

Example:

let webUrl = "https://outlook.office365.com/owa/?ItemID=...";
let otherWindow= window.open(webUrl, 'otherWindowCtx', "popup"); 

onst interval = setInterval(async () => {
if (otherWindow.closed) {
console.log("window closed");
clearInterval(interval );
}
}, 1000);

The 'otherWindow'.closed  is immedialty set to true and the object references are empty but the window with Outlook mail is still open.  And this is only happening with Outlook urls, not other sites.

 

And again, this is happening since yesterday without code changes. 

 

 

No RepliesBe the first to reply

Resources