How to bulk update existing URL alias?
I have Path auto module add path alias to URLs. I have changed the URL alias pattern. Now I want to update the pattern of old URLs also.
How can I achieve this?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
With Pathauto you can delete all the content aliases and then bulk generate new ones - but this does not address the problem if you have many pages with custom aliases mixed with automatic aliases as these will also be deleted. Bulk generate will only generate aliases for nodes that are checked for automatic alias AND has no alias - deleted unchecked auto alias nodes will revert back to default pattern of node/#
To get around this issue you can use Administrative views (or your own view with bulk operations)
The idea here is just to change something so that the nodes are saved again, the aliases are updated with the current pattern upon save. and using VBO allows you to do as many as you want, and you could add extra exposed filters to your View to better select your list of nodes to update.