• Resolved Thomas Bensmann

    (@th0masmb)


    In a site where one domain is public, and a separate domain is used for wp-admin access, canonical values will display the wrong domain after recent updates.

    Imagine a site that is available on example.com, but admin access is handled via admin.example.com. When the admin domain is accessed, WP_SITEURL and WP_HOME is set in wp-config.php to allow the domain to be browsed on that domain.

    On a couple of scenarios like this I have seen that the canonical metadata, on requests to example.com would display admin.example.com. And the same with og:url and yoast-schema-graph.

    I found out that this happens because it is indexed in wp_yoast_indexable with the admin.example permalink – even though the canonical fields are empty. It seems to me that it should respect the current wp home url these cases. Currently it seems like I have to run wp search-replace or wp yoast index –reindex to solve the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support marcanor

    (@marcanor)

    Hi @th0masmb,

    Thanks for your detailed report. We apologize for any issues that this has caused on your site.

    We’ve created a report for our developers and they’re looking into this issue.

    As a temporary workaround, you can do the following:
    1. Install the Yoast Test Helper plugin
    2. Go to Tools -> Yoast Test
    3. Hit the “Reset indexables & migrations” button
    4. Click the “Start processing and speed up your site now” button in SEO > Tools.

    Please note that, while the above instructions are perfectly safe, we always recommend having a current,?full backup of your site?for safety reasons.

    Plugin Support Jerlyn

    (@jerparx)

    Hi @th0masmb ,

    We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘domain in canonical, og:url and schema data’ is closed to new replies.