Redirect to Lootbits.io

redirects to lootbits site if error page is accidentally opened

// ==UserScript==
// @name         Redirect to Lootbits.io 
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  redirects to lootbits site if error page is accidentally opened
// @author       bernd
// @match        https://lootbits.io/dashboard.phpundefined
// @grant        none
// ==/UserScript==

(function() {
        if(location.href == "https://lootbits.io/dashboard.phpundefined")
        {
            location.href = "https://lootbits.io/dashboard.php";
        }
})();