Repository: jena Updated Branches: refs/heads/master 1fefcabff -> a2346597c
JENA-868: Use absolute URL Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/a2346597 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/a2346597 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/a2346597 Branch: refs/heads/master Commit: a2346597ca3bc58786eda5dd4cd762dafe5772e2 Parents: 1fefcab Author: Andy Seaborne <[email protected]> Authored: Thu Apr 2 15:20:23 2015 +0100 Committer: Andy Seaborne <[email protected]> Committed: Thu Apr 2 15:20:23 2015 +0100 ---------------------------------------------------------------------- .../src/main/webapp/js/app/models/fuseki-server.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/a2346597/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 69d8e55..9605524 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,10 +137,9 @@ define( /** Extract the server root path from the current window href */ currentRootPath: function() { var path = window.location.pathname.replace( /\/[^/]*$/, "" ); - // Relative URL - return path; - // Absolute URL - //return sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path ); + // 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 ); } } );
