Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Fix: Content-type specific hooks can skip over a subsite homepage (https://git.drupalcode.org/project/localgov_subsites_extras/-/work_items...)
localgov_subsites_extras_follow_field() would previously follow a field (e.g. localgov_services_parent) even when the current node was already a subsite root type. This meant that in some configurations, the method that determines the current subsite could skip over a subsite root. The function now checks whether the node is a subsite type before following the field, and returns early if so.
Additionally, SubsiteService::isSubsiteType() has been made public so it can be used in alter hooks. It's now used in the hooks this module provides for LocalGov Drupal content types to stop the same issue happening in them.