From 145fe1d4c0d697cd15619dd682c622d3c146d95f Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Fri, 9 Feb 2018 16:14:47 -0200 Subject: Better handling of help URLs anchors Change-Id: I25a6b105f4a809839575e43cd4834cf96a1e5e7c Reviewed-on: https://gerrit.libreoffice.org/49516 Reviewed-by: Olivier Hallot Tested-by: Olivier Hallot --- help3xsl/index2.html | 5 +++-- 1 file 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 -- cgit