diff --git a/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py b/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
index ec14e58566f4ab8ee2aadc13fb06fd52b785e08f..d2dfb14d1073f23b366ec58647d7137cb7ebf41d 100644
--- a/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
+++ b/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
@@ -187,7 +187,7 @@ class AlgorithmDirective(BaseDirective):
         match = DEPRECATE_USE_ALG_RE.search(msg)
         if match is not None and len(match.groups()) == 1:
             name = match.group(0)
-            msg = DEPRECATE_USE_ALG_RE.sub(r"Use :ref:`algorithm|\1` instead.", msg)
+            msg = DEPRECATE_USE_ALG_RE.sub(r"Use :ref:`algm-\1` instead.", msg)
 
         self.add_rst(".. warning:: %s" % msg)