diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-02-06 14:45:29 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-07 17:51:08 +0200 |
commit | 7f21a650f2ef339c481ef3721d296c700abefd41 (patch) | |
tree | 26b8369235a4964018a7c56026ebcc82694b8ecb /help3xsl/index2.html | |
parent | 81e494bca411179cc4e1af3c38b03c7af0447b5f (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.html | 5 |
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 |