diff --git a/core/modules/help_topics/help_topics.module b/core/modules/help_topics/help_topics.module index b44d61f..825199d 100644 --- a/core/modules/help_topics/help_topics.module +++ b/core/modules/help_topics/help_topics.module @@ -12,9 +12,9 @@ * Implements hook_help(). */ function help_topics_help($route_name, RouteMatchInterface $route_match) { - $help_home = Url::fromRoute('help.main')->toString(); switch ($route_name) { case 'help.page.help_topics': + $help_home = Url::fromRoute('help.main')->toString(); $locale_help = (\Drupal::moduleHandler()->moduleExists('locale')) ? Url::fromRoute('help.page', ['name' => 'locale'])->toString() : '#'; $output = ''; $output .= '
' . t('See the Help page for more topics.', [ ':help_page' => $help_home, ]) . '
';