From e775f5e83a2b769479baeacc79c6912b381f5950 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Fri, 6 May 2011 10:28:31 -0700 Subject: [PATCH] Fix for Issue 1578 - Can't load file:// pages This was caused by this checkin: https://github.com/jquery/jquery-mobile/commit/4b4ee54a72493972b55cf559a88d0c290375230b The change caused the base tag to be reset to file:// (literally with no path). All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase. --- js/jquery.mobile.navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index c5e30f1d..2f978e0a 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -240,7 +240,7 @@ //set the generated BASE element's href attribute to a new page's base path reset: function() { - base.element.attr( "href", docBase ); + base.element.attr( "href", initialPath ); } } : undefined; @@ -866,4 +866,4 @@ } }); -})( jQuery ); \ No newline at end of file +})( jQuery );