Commit 49b2716a authored by Boris Kocherov's avatar Boris Kocherov

hash computation fixed in convertToRealWorldSchemaPath

parent 550db7a5
......@@ -56,18 +56,22 @@
prev_downl_path = getMaxPathInDict(map, path);
if (prev_downl_path === undefined) {
url = "";
max_len = 1;
max_len = 0;
} else {
url = map[prev_downl_path];
if (prev_downl_path === "/") {
max_len = 0;
} else {
max_len = prev_downl_path.length;
}
hash = path.substr(max_len - 1);
}
hash = path.substr(max_len);
if (hash) {
// XXX urlencode for hash
if (url.indexOf("#") >= 0) {
url = url + hash;
} else {
url = url + "#" + path.substr(max_len - 1);
url = url + "#" + hash;
}
}
return url;
......
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