소스 검색

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

Olivier Massot 9 달 전
부모
커밋
97c65a4c10
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;
     }