为什么HTTP request 出错 window.location.href 依然可以跳转

fetch的地址是乱写的 但是浏览器 为什么依然可以跳转 目标html 而且不报错
如果删window.location.href. 则会提示404

var promise = fetch('/registerdfdfd', {
            method: 'post',
            body: userObjStr,
            headers: {
                'Content-Type': 'application/json'
            }
        }).then(registrationSuccessful, registrationFailed);

        function registrationSuccessful() {
            window.location.href = '/profile/profile.template.client.html';
        }
        function registrationFailed() {
            alert("oops")
        }

    }

说明请求是成功的,走入了 registrationSuccessful 方法了。 F12 调试下,前端浏览器调试技巧看看这篇:浏览器调试