From 8552370e5f0b36c22f0026230b66486a0de2d5a5 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 18 Apr 2019 10:30:35 -0700 Subject: [PATCH] CRM_Utils_System - Allow docURL functions to support "sysadmin" and "dev" links --- CRM/Utils/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index 1ac8d03d0b..0aa8fe3e67 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1385,7 +1385,7 @@ class CRM_Utils_System { * @return mixed */ public static function formatDocUrl($url) { - return preg_replace('#^user/#', 'user/en/stable/', $url); + return preg_replace('#^(user|sysadmin|dev)/#', '\1/en/stable/', $url); } /** -- 2.25.1