You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2014/03/31 17:31:30 UTC
svn commit: r1583347 - /jena/site/trunk/content/js/breadcrumbs.js
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('/');