diff --git a/ccm-core/web/themes/foundry/foundry/lib/utils.xsl b/ccm-core/web/themes/foundry/foundry/lib/utils.xsl
index 04f32c235..eeaf87178 100644
--- a/ccm-core/web/themes/foundry/foundry/lib/utils.xsl
+++ b/ccm-core/web/themes/foundry/foundry/lib/utils.xsl
@@ -912,7 +912,7 @@
-
+
diff --git a/ccm-navigation/src/com/arsdigita/navigation/ui/CategoryComponent.java b/ccm-navigation/src/com/arsdigita/navigation/ui/CategoryComponent.java
index 45a7f6a68..cb7506b4f 100755
--- a/ccm-navigation/src/com/arsdigita/navigation/ui/CategoryComponent.java
+++ b/ccm-navigation/src/com/arsdigita/navigation/ui/CategoryComponent.java
@@ -15,7 +15,6 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
package com.arsdigita.navigation.ui;
import com.arsdigita.navigation.Navigation;
@@ -42,6 +41,7 @@ public abstract class CategoryComponent extends AbstractComponent {
response,
category.getID(),
category.getName(),
+ category.getURL(),
category.getDescription(),
locateCategory(category));
}
@@ -50,17 +50,24 @@ public abstract class CategoryComponent extends AbstractComponent {
HttpServletResponse response,
BigDecimal id,
String title,
+ String urlStub,
String description,
String url) {
Element content = Navigation.newElement("category");
content.addAttribute("id", XML.format(id));
content.addAttribute("title", title);
+ if (urlStub == null || urlStub.isEmpty()) {
+ content.addAttribute("name", title);
+ } else {
+ content.addAttribute("name", urlStub);
+ }
content.addAttribute("description", description);
content.addAttribute("url", url);
return content;
}
-
+
protected String locateCategory(Category cat) {
return Navigation.redirectURL(cat.getOID());
}
+
}
diff --git a/ccm-navigation/src/com/arsdigita/navigation/ui/category/AbstractTree.java b/ccm-navigation/src/com/arsdigita/navigation/ui/category/AbstractTree.java
index 4d8f65411..6bb3b67de 100755
--- a/ccm-navigation/src/com/arsdigita/navigation/ui/category/AbstractTree.java
+++ b/ccm-navigation/src/com/arsdigita/navigation/ui/category/AbstractTree.java
@@ -171,6 +171,7 @@ public abstract class AbstractTree extends CategoryComponent {
response,
cat.getID(),
cat.getName(),
+ cat.getURL(),
cat.getDescription(),
concatURLs ? path : Navigation.redirectURL(cat.getOID()));