Author: szabyg
Date: Wed Dec 21 13:42:16 2011
New Revision: 1221724

URL: http://svn.apache.org/viewvc?rev=1221724&view=rev
Log:
STANBOL-436: it.publicBaseUri delivered http://localhost:8080 or so when behind 
a proxy, I hope this will work better.

Modified:
    
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl

Modified: 
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl?rev=1221724&r1=1221723&r2=1221724&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
 (original)
+++ 
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
 Wed Dec 21 13:42:16 2011
@@ -32,7 +32,9 @@ article {
         });
         var z = new VIE();
         z.use(new z.StanbolService({
-            url : "${it.publicBaseUri}",
+            // remove "/enhancervie" or "/enhancervie/" from the end of the 
uri.
+            // it.publicBaseUri gives back http://localhost:8080 or so if 
redirected so it's not useful.
+            url : window.location.href.replace(/\/[a-z]*\/?$/, ""), 
//"${it.publicBaseUri}",
             proxyDisabled: true
         }));
 


Reply via email to