Commit e887e8e4 authored by colemanw's avatar colemanw Committed by GitHub

Merge pull request #9897 from totten/master-doclink

CRM-20180 - Documentation URLs should contain "stable" *or* "current", not both
parents 110647e9 5cad71c0
......@@ -1391,7 +1391,7 @@ class CRM_Utils_System {
* @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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment