Преглед на файлове

Merge branch 'hotfix/V8-7098-domaines-custom--rediriger-les-w' into develop

Olivier Massot преди 9 месеца
родител
ревизия
27ab1f9e87
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      ot_admin/Classes/Controller/SiteController.php

+ 3 - 0
ot_admin/Classes/Controller/SiteController.php

@@ -1475,6 +1475,9 @@ class SiteController extends ActionController
             } catch (\RuntimeException $e) {} // silent the error until this https://assistance.opentalent.fr/browse/V8-3344
         }
 
+        // Redirect the www.xyz to xyz
+        $this->addRedirection('www.' . $newDomain, $newDomain);
+
         $this->otCacheManager->clearSiteCache($rootUid, true);
         return $rootUid;
     }