Changing the Canonical on a folder tree after changing the tree parent name and canonical breaks pagination

I am working on a client site, he has several hundred pages in a tree, the name/url of the tree has been changed and an alternate Canonical has been set on the parent node, I am finding that ALL of the tree elements also need their url’s changed, Is there a cheat for this of a feature I am missing?

Potentially related to this, the above pages have a page list with pagination enabled. This works fine when logged in but not when logged out.

Thanks
Martyn

Not sure about pagination, but I would run all the reindexing jobs / tasks, and clear cache.

Thanks for the advice, sadly I tried all of the obvious actions with no success

Regarding the paths changing, I’m not sure if there’s a good way of fixing this after the fact other than some database queries and edits, but if you had not made any changes yet, you can certainly change the paths of all the child pages at the same time.

How did you change the path of the parent node?

Here’s how I do it. Assume you have a few blog entries under the blog section with a path of /blog:

I then go the parent node, select SEO, and change the path there:

Then all the child pages will have their paths updated as well:

However, I you want to preserve the old paths as redirects, it becomes more complicated. The logical thing to do is go to Location of the parent node and add a new path and set that as canonical:

That will add the new path to the child pages, but it won’t change the canonical setting:

This is probably why the page list seems broken. It’s the same as the advanced search in the Sitemap. After changing the path using the second technique above, searching by parent page will yield no results:


Until the canonical URL of the child pages is set to match the new canonical path of the parent page:

I’m not 100% sure, but I think this behavior might be related to this long-standing bug.

Thankyou for that. I ended up rebuilding the site with the correct url’s. But this is just what I need for future reference.

Martyn

1 Like