We have a content type, Basic Page
that recently had the URL pattern changed from www.example.com/page/page-title
to www.example.com/page-title
. Under the Pathauto settings found at /admin/config/search/path/update_bulk
there are options to Select the types of paths for which to generate URL aliases
which allows for selecting different entities such as Content
. Additionally there is Select which URL aliases to generate
where we want Update the URL alias for paths having an old URL alias
as the choice.
We don't want to update all Content
entities, but rather we want to update by content type
.
How would we update URL alias
after changing the path pattern
by content type
either programmatically or through an existing module?
The goal is to be able to do update all Basic Pages
URL alias, but not others.
basic pages
that are using the old URL pattern after creating the new pattern.