Merge pull request #56 from anandpdoshi/master

dom.js get_base_url function should parse till index.html and not index.cgi
This commit is contained in:
Anand Doshi 2011-12-05 21:08:19 -08:00
commit 246e6d5c71

View file

@ -500,7 +500,7 @@ wn.urllib = {
// returns the base url with http + domain + path (-index.cgi or # or ?)
get_base_url: function() {
var url= window.location.href.split('#')[0].split('?')[0].split('index.cgi')[0];
var url= window.location.href.split('#')[0].split('?')[0].split('index.html')[0];
if(url.substr(url.length-1, 1)=='/') url = url.substr(0, url.length-1)
return url
},