diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java
index 196862bc253138c8b07fba65e1357d3eb26ca442..0cf1791f58980ffdafa0d89c12a394ae6856cf4b 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/VocabularyTermPE.java
@@ -247,8 +247,15 @@ public class VocabularyTermPE extends HibernateAbstractRegistrationHolder implem
     public String getUrl()
     {
         String template = getVocabulary().getURLTemplate();
-        return template != null ? (template.replaceAll(
-                BasicConstant.VOCABULARY_URL_TEMPLATE_TERM_PATTERN, getCode())) : null;
+        if (null == template)
+        {
+            return null;
+        }
+        String url =
+                template.replaceAll(BasicConstant.DEPRECATED_VOCABULARY_URL_TEMPLATE_TERM_PATTERN,
+                        getCode());
+        url = url.replaceAll(BasicConstant.VOCABULARY_URL_TEMPLATE_TERM_PATTERN, getCode());
+        return url;
     }
 
 }