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

Modified Files:
      Tag: b1_5
        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.6.2.1
diff -u -b -r1.6 -r1.6.2.1
--- XsltPortlet.java    26 Jul 2008 18:03:17 -0000      1.6
+++ XsltPortlet.java    17 Dec 2008 13:32:59 -0000      1.6.2.1
@@ -135,7 +135,12 @@
                                else {
                                        link = page;
                                }
-                renderUrl = new PortletURLImpl(link, window, 
(HttpServletRequest) request,
+               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