You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/10/17 19:28:22 UTC
jena git commit: Debug code.
Repository: jena
Updated Branches:
refs/heads/master 77ddb0e11 -> a0c15cb53
Debug code.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/a0c15cb5
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/a0c15cb5
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/a0c15cb5
Branch: refs/heads/master
Commit: a0c15cb53477c9403725ae4f62222c7009ea6cc1
Parents: 77ddb0e
Author: Andy Seaborne <an...@apache.org>
Authored: Sat Oct 17 18:28:01 2015 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Sat Oct 17 18:28:01 2015 +0100
----------------------------------------------------------------------
.../main/webapp/js/app/models/fuseki-server.js | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/a0c15cb5/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js b/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js
index 9605524..f61a7a1 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js
+++ b/jena-fuseki2/jena-fuseki-core/src/main/webapp/js/app/models/fuseki-server.js
@@ -137,9 +137,22 @@ define(
/** Extract the server root path from the current window href */
currentRootPath: function() {
var path = window.location.pathname.replace( /\/[^/]*$/, "" );
- // Need some kind of relative URL
- // return path ; - See JENA-868 breaks the "info"
- return sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path );
+ /*
+ console.log("window.location="+window.location) ;
+ console.log("window.location.href="+window.location.href) ;
+ console.log("window.location.protocol="+window.location.protocol) ;
+ console.log("window.location.host="+window.location.host) ;
+ console.log("window.location.hostname="+window.location.hostname) ;
+ console.log("window.location.port="+window.location.port) ;
+ console.log("window.location.pathname="+window.location.pathname) ;
+ console.log("window.location.origin="+window.location.origin) ;
+ console.log("window.location.hash="+window.location.hash) ;
+ console.log("window.location.search="+window.location.search) ;
+ console.log("path='"+path+"'") ;
+ */
+ var path2=sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path );
+ return path2 ;
+ // See JENA-868 : port remapping.
}
} );