From d612edd126f478769b7b34b60d2f8a4f5a6a476d Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Wed, 9 Mar 2011 17:23:36 -0800 Subject: [PATCH] Fix for Issue 1195 - base href getting incorrectly set to include extra "/" - Added code to base.set() that strips any leading slash from the path returned from path.get(). --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index ab49ea6bbed..2d1630a3bdb 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -178,7 +178,7 @@ //set the generated BASE element's href attribute to a new page's base path set: function( href ){ - base.element.attr('href', docBase + path.get( href )); + base.element.attr('href', docBase + path.get( href ).replace(/^\//, "")); }, //set the generated BASE element's href attribute to a new page's base path