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().
This commit is contained in:
Kin Blas 2011-03-09 17:23:36 -08:00
parent 9bd530b1fa
commit d612edd126

View file

@ -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