Commit 25548af3 authored by Alexey Golubev's avatar Alexey Golubev Committed by GitHub

Merge pull request #130 from ONLYOFFICE/hotfix/v4.3.6

Hotfix/v4.3.6
parents 762a6449 255c6b7d
......@@ -145,8 +145,13 @@
function getBaseUrl()
{
var index_html = window["location"]["href"];
return index_html.substring(0, index_html.lastIndexOf("/") + 1);
var indexHtml = window["location"]["href"];
var questInd = indexHtml.indexOf("?");
if (questInd > 0)
{
indexHtml = indexHtml.substring(0, questInd);
}
return indexHtml.substring(0, indexHtml.lastIndexOf("/") + 1);
}
function getEncodingParams()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment