From 85febbdd00796f773bb02f957649635b8630bba1 Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Mon, 21 Oct 2013 17:12:04 +0200 Subject: [PATCH] Support protocol-relative URL:s --- scripts/uncompressed/history.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/uncompressed/history.js b/scripts/uncompressed/history.js index 299e7721..7b548247 100644 --- a/scripts/uncompressed/history.js +++ b/scripts/uncompressed/history.js @@ -497,6 +497,9 @@ if ( /[a-z]+\:\/\//.test(url) ) { // Full URL } + else if ( url.substring(0,2) === '//' ) { + // Full URL (protocol-less) + } else if ( firstChar === '/' ) { // Root URL fullUrl = History.getRootUrl()+url.replace(/^\/+/,'');