diff --git a/src/Service/UWService.php b/src/Service/UWService.php index 9b3cf295005a310dbf586426bda0dd936117eb3e..0b33fa3ece1040b20e44a2a0e73f327de3600950 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -503,8 +503,9 @@ class UWService implements UWServiceInterface { */ public static function nodeIsHomePage(int $nid): bool { $front_page_path = \Drupal::configFactory()->get('system.site')->get('page.front'); + $front_page_alias = \Drupal::service('path_alias.manager')->getAliasByPath($front_page_path); $node_alias = \Drupal::service('path_alias.manager')->getAliasByPath('/node/' . $nid); - return $front_page_path === $node_alias; + return $front_page_alias === $node_alias; } /**