diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index 8079cec6f2d6..3ded33fe199c 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1391,7 +1391,7 @@ public static function docURL($params) { * @return mixed */ public static function formatDocUrl($url) { - return preg_replace('#^user/((\w\w/)?stable/)?#', 'user/en/stable/', $url); + return preg_replace('#^user/((\w\w/)?(stable|current)/)?#', 'user/en/stable/', $url); } /**