Repository: jena Updated Branches: refs/heads/master 85f47db8d -> ed13968b0
JENA-868 : generate relative URL. Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/ed13968b Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/ed13968b Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/ed13968b Branch: refs/heads/master Commit: ed13968b06cfeccc380270a364c4dc26594dd47f Parents: 85f47db Author: Andy Seaborne <[email protected]> Authored: Fri Mar 27 12:04:38 2015 +0000 Committer: Andy Seaborne <[email protected]> Committed: Fri Mar 27 12:04:38 2015 +0000 ---------------------------------------------------------------------- .../src/main/webapp/js/app/models/fuseki-server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/ed13968b/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 fef10c1..69d8e55 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,7 +137,10 @@ define( /** Extract the server root path from the current window href */ currentRootPath: function() { var path = window.location.pathname.replace( /\/[^/]*$/, "" ); - return sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path ); + // Relative URL + return path; + // Absolute URL + //return sprintf( "%s//%s:%s%s", window.location.protocol, window.location.hostname, window.location.port, path ); } } );
