diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-02-09 16:14:47 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-02-12 14:09:18 +0100 |
commit | 145fe1d4c0d697cd15619dd682c622d3c146d95f (patch) | |
tree | 7243cbc7dcdb28bdae71adae38e49dc4f25da2d2 /help3xsl | |
parent | 863b926ed16b372800f75e8ac467afbf3443f61e (diff) |
Better handling of help URLs anchors
Change-Id: I25a6b105f4a809839575e43cd4834cf96a1e5e7c
Reviewed-on: https://gerrit.libreoffice.org/49516
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/index2.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 578acbbd22..58a17f6271 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -39,12 +39,13 @@ var file = map[bookmark]; // rebuild URL if (file === undefined){ - file = defaultFile; - } + var newURL = lang + '/' + defaultFile + '?System=' + system + '&DbPAR=' + module; + }else{ 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 |