Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Fix for Issue 1195 - base href getting incorrectly set to include ext…
Browse files Browse the repository at this point in the history
…ra "/"

- Added code to base.set() that strips any leading slash from the path returned from path.get().
  • Loading branch information
jblas committed Mar 10, 2011
1 parent 9bd530b commit d612edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d612edd

Please sign in to comment.