This project is not covered by Drupal’s security advisory policy.

Path Alias Force provides functionality to create forced aliases for entities in a multilingual environment while using the language hierarchy system. This means that whenever you create a node in a specific language and you have other languages which fallback to it, this module will automatically generate aliases for every other language besides the source one.

Notes

  • This module decorates the AliasStorage service due to the necessity of overwriting the save() and delete() functionalities.
  • Updating the source node(fields which are used to generate the pattern of the path) will update the translations path as well.
  • ContentEntityForms which contain path settings have been changed for translations with a fallback defined - Generate automatic alises has been unchecked so that updating any translation will not change it's pattern. Also only the admin is able to access the path settings in the form.
  • Module provides the possibility to generate forced aliases for existing content and deletes them when the module is uninstalled.

Credits

The module has been developed for the Drupal 7 by Amazee Labs and you can find the module on GitHub: Path alias force. The single key difference is that I opted to update existing forced aliases instead of generating new ones when an entity is updated or created.

Dependencies

Supporting organizations: 
The company is the sponsor for the module.

Project information

Releases