Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit db8f1c2

Browse files
Merge branch 'main' into rk/autoscaling-settings
2 parents 7ffd35d + c1ad124 commit db8f1c2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Service/Api.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,10 @@ public function getSiteUrl(Environment $environment, $appName, EnvironmentDeploy
14061406

14071407
// Fall back to the public-url property.
14081408
if ($environment->hasLink('public-url')) {
1409-
return $environment->getLink('public-url');
1409+
$data = $environment->getData();
1410+
if (!empty($data['_links']['public-url']['href'])) {
1411+
return $data['_links']['public-url']['href'];
1412+
}
14101413
}
14111414

14121415
return null;

0 commit comments

Comments
 (0)