Author: andy
Date: Wed Aug  6 14:17:01 2014
New Revision: 1616240

URL: http://svn.apache.org/r1616240
Log:
Set current base

Modified:
    
jena/Experimental/jena-fuseki2/src/main/webapp/js/app/models/fuseki-server.js

Modified: 
jena/Experimental/jena-fuseki2/src/main/webapp/js/app/models/fuseki-server.js
URL: 
http://svn.apache.org/viewvc/jena/Experimental/jena-fuseki2/src/main/webapp/js/app/models/fuseki-server.js?rev=1616240&r1=1616239&r2=1616240&view=diff
==============================================================================
--- 
jena/Experimental/jena-fuseki2/src/main/webapp/js/app/models/fuseki-server.js 
(original)
+++ 
jena/Experimental/jena-fuseki2/src/main/webapp/js/app/models/fuseki-server.js 
Wed Aug  6 14:17:01 2014
@@ -24,7 +24,6 @@ define(
       /** This initializer occurs when the module starts, not when the 
constructor is invoked */
       init: function( options ) {
         this._baseURL = this.currentRootPath();
-
         this._managementURL = null;
         this.set( "selectedDatasetName", PageUtils.queryParam( "ds" ) )
       },
@@ -137,7 +136,7 @@ define(
 
       /** Extract the server root path from the current window href */
       currentRootPath: function() {
-        var path = window.location.path.replace( /\/[^/]*$/, "" );
+        var path = window.location.pathname.replace( /\/[^/]*$/, "" );
         return sprintf( "http://%s:%s%s";, window.location.hostname, 
window.location.port, path );
       }
     } );


Reply via email to