Ask Zhihu H5 how to avoid the wrong URL prompt of safari in the process of waking up APP?

in the process of testing H5 to wake up app, when does not install app, the [Taobao] [JD.com] of under safari will appear a pop-up prompt of "invalid URL" (as shown in the figure).

but Zhihu will not appear this prompt, but will jump directly to the download page. How can Zhihu avoid it? Please answer!

attach the core code written with reference to other articles:

// app
ue.checkApp = function () {
    var _clickTime = +(new Date());
    function check(elsTime) {
        if ( elsTime > 3000 || document.hidden || document.webkitHidden) {
            // cb(1);
            console.log("app")
        } else {
            location.href = downloadUrl
        }
    }
    //20ms3000ms
    var _count = 0, intHandle;
    intHandle = setInterval(function(){
        _countPP;        
        var elsTime = +(new Date()) - _clickTime;
        if (_count>=100 || elsTime > 3000 ) {
            clearInterval(intHandle);
            check(elsTime);
        }
    }, 20);
};

// href
$btnOpenApp.attr("href", scheme)

// 
$btnOpenApp.on("click", function() {
    //
    if (browser.isWeChat) {
        $(".pop-openbrowser").show();
    } else {
        ue.checkApp();
    }
});
Mar.14,2021

you can take a look at the solution of Magic window

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-1ea9ba7-1f7c.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-1ea9ba7-1f7c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?