浏览代码

fix opentalent orga website resolution

Olivier Massot 1 年之前
父节点
当前提交
0e666112f5
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Service/Organization/Utils.php

+ 4 - 0
src/Service/Organization/Utils.php

@@ -19,6 +19,7 @@ class Utils
 {
     public const START_DATE_KEY = 'dateStart';
     public const END_DATE_KEY = 'dateEnd';
+    public const OUT_OF_NET_SUBDOMAIN = 'outofnet';
 
     public function __construct(
         private NetworkOrganizationRepository $networkOrganizationRepository,
@@ -268,6 +269,9 @@ class Utils
         if (!$subdomain) {
             return null;
         }
+        if ($subdomain === self::OUT_OF_NET_SUBDOMAIN) {
+            return 'https://opentalent.fr';
+        }
 
         return 'https://'.$subdomain.'.opentalent.fr';
     }