You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ja...@apache.org on 2008/04/02 11:27:58 UTC
svn commit: r643813 -
/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/cms/publication/util/OutgoingLinkRewriter.java
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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org