Reindex not respecting WP URL setting
-
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.
- Install Yoast test helper:
- The topic ‘Reindex not respecting WP URL setting’ is closed to new replies.