• Hi! I recently made an opening in my firewall allowing clients to see my internal dev website at “app01”. When i made a new config displaying “sites.inforte.no/inforte-temp-test01” and pointing to “app01”, and changed site url and & home url got an error when going to wp-admin.

    This error is: “Uncaught DOMException: Failed to execute ‘replaceState’ on ‘History’: A history state object with URL ‘https://app01.inforte.local/inforte-temp-test01//wp-admin/export.php’ cannot be created in a document with origin ‘https://sites.inforte.no’ and URL ‘https://sites.inforte.no/inforte-temp-test01/wp-admin/export.php’.(…)”.

    It says the error is happening within the wp-admin, right here:

    “<link id=”wp-admin-canonical” rel=”canonical” href=”https://app01.inforte.local/inforte-temp-test01//wp-admin/export.php&#8221; />
    <script>
    if ( window.history.replaceState ) {
    window.history.replaceState( null, null, document.getElementById( ‘wp-admin-canonical’ ).href + window.location.hash );
    }
    </script>”

    As you can see, the canonical link should have been changed to sites.inforte.no? Right? And also, it says “test01//wp-admin” with double “//”. Now i didnt specify double “//” anywhere so there should be no reason for this to happen.

    Can anyone explain to me what is going on here? I will appreciate any help i can get ^_^

  • The topic ‘Getting DOMException after site_url & home url change’ is closed to new replies.