Browse Source

fix opentalent orga website resolution

Olivier Massot 1 year ago
parent
commit
0e666112f5
1 changed files with 4 additions and 0 deletions
  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';
     }