• Resolved erniecom

    (@erniecom)


    Default language of the site is es_ES, while en_US is supported through TranslatePress. To my knowledge and up to a certain point this has been working correctly until recently when I noticed that the Yoast Elementor breadcrumb no longer showed es_ES links. Inicio (home) is still a correct pointing to ../es/.. but the other links in the breadcrumb now have ../en/.. !

    The only way to make it work correctly is:

    • Install Yoast test helper: wp plugin install yoast-test-helper --activate
    • Goto /wp-admin/tools.php?page=yoast-test-helper
    • Click the “Reset indexables tables & migration”

    I guess that is not a real solution. If I understand correctly after the reset you need to rebuild the “indexables tables”. I did which I did with:

    wp yoast index --reindex --skip-confirmation --interval=0

    Not sure if that is the right way to do it because the result made things worse. Breadcrumb links now seem to be pointing to ../es/.. alright but now the https in the link have changed to http! Result I see here is that the browser ends up at /es/*/#/sitedomain.com for some obscure reason.

    It seems that reindexing does not correctly take in account the site URL settings I see in /wp-admin/options-general.php which both have the https.

    This was tested with Rehub theme (which includes the Elementor breadcrumb with shortcode), Elementor, Elementor Pro, TranslatePress, WooCommerce, Yoast, Yoast Test Helper.

    I also quickly looked at the breadcrumb links with the short code in twenty twenty two theme, but it showed the same http where https should appear. The reindexing does fix the language issue but the links should have https like the site URL setting demands.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Erniecom,

    I understand that you used the Yoast Test Helper plugin to resolve the issue where breadcrumbs no longer showed es_ES links. Unfortunately, this revealed another problem where the breadcrumbs links are now in HTTP instead of HTTPS. I am sorry about that experience.

    Can you verify if switching permalink structure back and forth fixes the issue for you? You just need to click on the ‘Save’ button in WordPress > Settings > Permalinks without making any changes. It should reset some settings (flush rewrite rules and trigger some actions). Also, it’ll be helpful to delete transients (or flush object cache).

    Do let us know how it goes.

    Thread Starter erniecom

    (@erniecom)

    I tried what you suggested but it did not fix it. I also studied two yoast database tables that had a great number of URLs that started with https://

    For the moment I came to the following work around after re-indexing:

    wp yoast index --reindex --skip-confirmation --interval=0
    wp db query "UPDATE wp_yoast_indexable SET permalink = REPLACE(permalink,'https://','https://');"
    wp db query "UPDATE wp_yoast_seo_links SET url = REPLACE(url,'https://','https://');"

    … but I don’t know if this hack will negatively affect SEO. Better would be when reindexing were fixed.

    Thread Starter erniecom

    (@erniecom)

    I discovered another workaround:

    wp yoast index --reindex --skip-confirmation --interval=0 --url=https://mydomain.com

    This explicitly sets the right URL and apparently forces the yoast index to do it right.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reindex not respecting WP URL setting’ is closed to new replies.