Skip to content

Commit

Permalink
Merge pull request #265 from localgovdrupal/2.x
Browse files Browse the repository at this point in the history
2.0.0-beta17 release
  • Loading branch information
finnlewis authored Jul 9, 2024
2 parents 6d8e7ba + 585f3ac commit 7a4224e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion localgov_microsites_base.theme
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,10 @@ function localgov_microsites_base_preprocess_node(&$variables) {

// Load the group by context. See localgov_microsites_group.module.
$group = localgov_microsites_group_get_by_context();
$current_domain = \Drupal::service('domain.negotiator')->getActiveDomain();

if ($group instanceof MicrositeGroupInterface) {
$front_page = \Drupal::config('domain.config.group_' . $group->id() . '.system.site')->get('page.front');
$front_page = \Drupal::config('domain.config.' . $current_domain->id() . '.system.site')->get('page.front');
$current_path = \Drupal::service('path.current')->getPath();
$current_path_alias = \Drupal::service('path_alias.manager')->getAliasByPath($current_path);

Expand Down

0 comments on commit 7a4224e

Please sign in to comment.