standalone: fix not returning absolute paths from System class
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Sat, 2 Dec 2023 23:37:41 +0000 (23:37 +0000)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Sat, 2 Dec 2023 23:43:49 +0000 (23:43 +0000)
Simple one this.

CRM/Utils/System/Standalone.php

index d7315f1ddc932167c86f7386823d2263bed6754a..27f32bf5bbffd7a744d9c79445f7b8bf61734d95 100644 (file)
@@ -205,7 +205,7 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base {
   ) {
     $fragment = $fragment ? ('#' . $fragment) : '';
     if ($absolute) {
-      return Civi::paths()->getUrl("[cms.root]/{$path}?{$query}$fragment");
+      return Civi::paths()->getUrl("[cms.root]/{$path}?{$query}$fragment", 'absolute');
     }
     else {
       return "/{$path}?{$query}$fragment";