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.

bulk generate path alias

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.

  • 1
    You’ll have to dive into the code, the module simply doesn’t have that feature
    – Clive
    Commented Jan 25, 2019 at 18:19
  • I think you can just create a new pattern for the basic page content type? If I understand the question correctly.
    – cchen
    Commented Jan 25, 2019 at 21:06
  • @cchen The question is regarding what is needed to update basic pages that are using the old URL pattern after creating the new pattern. Commented Jan 25, 2019 at 23:25

1 Answer 1


you can disable patterns that you dont want to update. In this way update will only update the patterns belong to content types

  • @Onur Are you saying to navigate to /admin/config/search/path/patterns page and then set them to be disabled? Commented Jan 29, 2019 at 1:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.