diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index ed65d98aca0cd50c626fde765081e63eb15987d9..7c4575c5eb82fc28d85e5d4bd38a82a9f2ac2c70 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -1316,17 +1316,14 @@ function uw_cfg_common_fillpdf_form_form_pre_form_build_alter(FillPdfFormForm $f
 function uw_cfg_common_preprocess_html(&$variables): void {
   // Setting the meta tag for web forms getting indexed
   // if not used any content.
-  if (!isset($variables['node_type']) || $variables['node_type'] == NULL) {
-    if ($variables['root_path'] === 'webform') {
-      $noindex = [
-        '#tag' => 'meta',
-        '#attributes' => [
-          'name' => 'robots',
-          'content' => 'noindex',
-        ],
-      ];
-      $variables['page']['#attached']['html_head'][] = [$noindex, 'noindex'];
-    }
+  if ($variables['root_path'] === 'webform') {
+    $noindex = [
+      '#tag' => 'meta',
+      '#attributes' => [
+        'name' => 'robots',
+        'content' => 'noindex',
+      ],
+    ];
+    $variables['page']['#attached']['html_head'][] = [$noindex, 'noindex'];
   }
-
 }