Author: sohil.shah(a)jboss.com
Date: 2008-07-16 16:58:03 -0400 (Wed, 16 Jul 2008)
New Revision: 11469
Modified:
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
Log:
adding support for more than just .html relative links within the rendered CMS content
Modified:
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2008-07-16
15:12:33 UTC (rev 11468)
+++
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/CMSPortlet.java 2008-07-16
20:58:03 UTC (rev 11469)
@@ -255,7 +255,11 @@
{
String relURI = m.group(3) != null ? m.group(3) : m.group(4);
URLFactory urlFactory = resourceURLFactory;
- if (relURI.endsWith(".html"))
+ if (
+ relURI.endsWith(".html") ||
+ relURI.endsWith(".htm") ||
+ relURI.endsWith(".xhtml")
+ )
{
urlFactory = textURLFactory;
}
Show replies by date