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:
commit
246e6d5c71
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue