summaryrefslogtreecommitdiff
path: root/help3xsl/index2.html
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-02-06 14:45:29 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-02-07 16:18:09 +0100
commitfd1e80bca4d05e1dac45fb226dff318e87b81ead (patch)
tree2800747abce0ef4df7619cde9c84643d651b479a /help3xsl/index2.html
parent0f7a354db93f0affe218cae7e0ea294a4efe5891 (diff)
Add anchor to branch bookmarks in hid-to-file
Add the id="bm_nnnnnn" as anchor to get the html file displayed in the right position. Change-Id: Icf50119d7b4f7846abc2a128ccdf9d3ab77a50c2 Reviewed-on: https://gerrit.libreoffice.org/49299 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/index2.html')
-rw-r--r--help3xsl/index2.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index f30348b98b..578acbbd22 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -41,7 +41,10 @@
if (file === undefined){
file = defaultFile;
}
- var newURL = lang + '/' + file + '?System=' + system + '&DbPAR=' + module;
+ var indx = file.indexOf('#');
+ var bm = file.substr(indx,file.length);
+ file = file.substr(0,indx);
+ var newURL = lang + '/' + file + '?System=' + system + '&DbPAR=' + module + bm;
window.open(newURL,'_self');
}else{
// URL came from elsewhere, direct access to webroot, we redirect to main Help page