Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical after change of address #15325

Open
6 of 8 tasks
wpdesignuser opened this issue May 27, 2020 · 5 comments
Open
6 of 8 tasks

Canonical after change of address #15325

wpdesignuser opened this issue May 27, 2020 · 5 comments

Comments

@wpdesignuser
Copy link

wpdesignuser commented May 27, 2020

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

I made a change to my site address, from mysite.com to mysite.com.ar, but the canonical page and post address points to the old address.

Please describe what you expected to happen and why.

that the canonical address uses the address configured in wordpress

How can we reproduce this behavior?

  1. Change you sit url in settings
  2. Check the canonical of post and pages in source code

Technical info

  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • Gutenberg
  • [x ] Classic Editor plugin
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other

Used versions

  • WordPress version:
  • Yoast SEO version:
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:
  • Tested with theme:
@stodorovic
Copy link
Contributor

@wpdesignuser
Copy link
Author

Hi stodorovic, thank you for your help.

for the moment I solved it by massively saving all the pages and posts back, but I think it should be automatic, because the impact is great for SEO,

@stodorovic
Copy link
Contributor

Yoast uses the hook update_option_home to rebuild indexables after change, but I didn't test how it works. Did you change WordPress and Site URL via Dashboard or wp-cli or direct MySQL query?

@wpdesignuser
Copy link
Author

Hi stodorovic, i change WordPress and Site URL via Dashboard

@Djennez
Copy link
Member

Djennez commented Jul 15, 2020

Well, just tested and this seems to be still an issue on Yoast 14.6-RC. Changing the home- and siteurl does not seem to NULL the indexables. On update_option_home only the homepage gets reset, but all other permalinks stay the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants