jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: JENA-868 : generate relative URL.
Date Fri, 27 Mar 2015 12:04:50 GMT
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 <andy@apache.org>
Authored: Fri Mar 27 12:04:38 2015 +0000
Committer: Andy Seaborne <andy@apache.org>
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 );
       }
     } );
 


Mime
View raw message