svn commit: r643813 - /lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: jann
Date: Wed Apr  2 02:27:55 2008
New Revision: 643813

URL: http://svn.apache.org/viewvc?rev=643813&view=rev
Log:
Need complete area here, otherwise the link to the area info-authoring will be wrong

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java

Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java?rev=643813&r1=643812&r2=643813&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java Wed Apr  2 02:27:55 2008
@@ -59,7 +59,7 @@
         URLInformation info = new URLInformation(webappUrl);
         String pubId = info.getPublicationId();
         String area = info.getArea();
-
+        
         String proxyUrl = null;
 
         if (pubId != null && area != null) {
@@ -73,7 +73,7 @@
 
                 Proxy proxy = pub.getProxy(area, isSslProtected(webappUrl));
                 if (proxy != null) {
-                	    String prefix = "/" + pubId + "/" + area;
+                	    String prefix = "/" + pubId + "/" + info.getCompleteArea();
                 	    String areaUrl = webappUrl.substring(prefix.length());
                     proxyUrl = proxy.getUrl() + areaUrl;
                 } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.