Update of 
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets
In directory 
james.mmbase.org:/tmp/cvs-serv26809/cmsc/portlets/src/java/com/finalist/cmsc/portlets

Modified Files:
        XsltPortlet.java 
Log Message:
CMSC-1193 - Tag cmsc:renderURL does not take account of the host location of 
the page


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets
See also: http://www.mmbase.org/jira/browse/CMSC-1193


Index: XsltPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/XsltPortlet.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- XsltPortlet.java    26 Jul 2008 18:03:17 -0000      1.6
+++ XsltPortlet.java    17 Dec 2008 13:33:16 -0000      1.7
@@ -131,12 +131,15 @@
                                NavigationItem item = 
SiteManagement.convertToNavigationItem(page);
                                        if (item != null) {
                                        link = SiteManagement.getPath(item, 
!ServerUtil.useServerName());
-                                       }
-                               else {
+               } else {
                                        link = page;
                                }
-                renderUrl = new PortletURLImpl(link, window, 
(HttpServletRequest) request,
-                     (HttpServletResponse) response, false);
+               String host = null;
+               if (ServerUtil.useServerName()) {
+                  host = SiteManagement.getSite(item);
+               }
+
+               renderUrl = new PortletURLImpl(host, link, window, 
(HttpServletRequest) request, (HttpServletResponse) response, false);
             } else {
                renderUrl = response.createRenderURL();
             }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to