[Libreoffice-commits] help.git: help3xsl/index2.html
Olivier Hallot
olivier.hallot at libreoffice.org
Mon Feb 12 13:10:11 UTC 2018
help3xsl/index2.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 145fe1d4c0d697cd15619dd682c622d3c146d95f
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date: Fri Feb 9 16:14:47 2018 -0200
Better handling of help URLs anchors
Change-Id: I25a6b105f4a809839575e43cd4834cf96a1e5e7c
Reviewed-on: https://gerrit.libreoffice.org/49516
Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index 578acbbd2..58a17f627 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
More information about the Libreoffice-commits
mailing list