Support » Fixing WordPress » wp-admin-canonical link error

  • I have a subdomain:

    I forcibly redirects to directory:
    By changing site URL and some RewriteRule on .htaccess.
    Now the website working fine, but I found an error in wp-admin canonical url on all admin pages:
    Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL ''; cannot be created in a document with origin ''; and URL '';

    When I dig more I found the canonical link is still subdomain( ) :

    <link id="wp-admin-canonical" rel="canonical" href="" />
    		if ( window.history.replaceState ) {
    			window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );

    Is there any solution for changing this canonical url from to

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp-admin-canonical link error’ is closed to new replies.