jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject svn commit: r1583347 - /jena/site/trunk/content/js/breadcrumbs.js
Date Mon, 31 Mar 2014 15:31:30 GMT
Author: rvesse
Date: Mon Mar 31 15:31:29 2014
New Revision: 1583347

URL: http://svn.apache.org/r1583347
Log:
Fix JENA-665, broken breadcrumbs when browsing over HTTPS

Modified:
    jena/site/trunk/content/js/breadcrumbs.js

Modified: jena/site/trunk/content/js/breadcrumbs.js
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/js/breadcrumbs.js?rev=1583347&r1=1583346&r2=1583347&view=diff
==============================================================================
--- jena/site/trunk/content/js/breadcrumbs.js (original)
+++ jena/site/trunk/content/js/breadcrumbs.js Mon Mar 31 15:31:29 2014
@@ -4,10 +4,11 @@ $(document).ready(function() {
 	
 	//Get the name of the domain dynamically
 	var prefix = 'http://' + location.host + '/';
+	var sslPrefix = 'https://' + location.host + '/';
 
 	if(url != prefix && url != prefix + 'index.html'){
 
-		var shortForm = url.replace(prefix, '').replace(/(index)?\.html/g, '').replace(/#.*/g,
'');
+		var shortForm = url.replace(prefix, '').replace(sslPrefix, '').replace(/(index)?\.html/g,
'').replace(/#.*/g, '');
 	
 		var crumbs = shortForm.split('/');
 



Mime
View raw message