summaryrefslogtreecommitdiff
path: root/help3xsl/help.html
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl/help.html')
-rw-r--r--help3xsl/help.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/help3xsl/help.html b/help3xsl/help.html
index a9a369ecc5..9bb30b5dca 100644
--- a/help3xsl/help.html
+++ b/help3xsl/help.html
@@ -27,13 +27,14 @@
}
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
+
var url = window.location.href;
- var n = url.indexOf('help.html?');
+ var n = url.indexOf('?');
if (n != -1) {
// the URL came from LibreOffice help (F1)
var version = getParameterByName("Version", url);
- var rest = url.substr(n + 12, url.length);
- var newURL = version + '/index.html?' + rest;
+ var query = url.substr(n + 1, url.length);
+ var newURL = version + '/index.html?' + query;
window.open(newURL, '_self');
} else {
// URL came from elsewhere, direct access to webroot, we redirect to main Help page