What if the link jump of the javascript callback function is judged not to be artificially intercepted by the browser?

by default, browsers do block non-artificial jumps, so I open a new tab and can"t solve this problem in the past.
error
the technology stack is angularjs + angularjs material

$mdDialog.show(confirm).then(function () {
    var url = "www.google.com";
    var goUrl = window.open();
    goUrl.location = url;
});

Codepen

Oct.01,2021

the solution can refer to Taobao's solution:

instead of open, directly, open a new redirect page and window.locatio.href it on the redirect page


this looks like a pop-up window. Don't write a callback, just change it to the click monitor of the confirm button

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35a0f-2b7f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35a0f-2b7f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?