From aeb4496ad27ae31d595327a5245fccef784f0fe3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 6 Dec 2011 10:35:26 +0530 Subject: [PATCH] Changed base url to be parsed till index.html and not index.cgi --- js/legacy/utils/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/legacy/utils/dom.js b/js/legacy/utils/dom.js index a86eae4ba5..0d0af528d8 100644 --- a/js/legacy/utils/dom.js +++ b/js/legacy/utils/dom.js @@ -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 },