From 54a17bfbc795bedaccd9f1846b1a49d57722b5b4 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 20 Feb 2019 11:52:46 -0300 Subject: Fix call of main Help page from app Help menu The Application Help menu sends //.uno:HelpIndex in the Help URL. This translates to '.uno:HelpIndex' and module name is lost, opening the New Help default page instead of the module Help entry page. The patch picks the right module Help entry page in this particular case. Change-Id: Ifbb5ba4f817b195210fbb19bcb5c2011d2cb416d Reviewed-on: https://gerrit.libreoffice.org/68093 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- help3xsl/index2.html | 4 ++++ source/text/shared/main0108.xhp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 01bfb442f4..0321b7a390 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -37,6 +37,10 @@ case "sbasic": {defaultFile='text/sbasic/shared/main0601.html';module="BASIC";break;} default: {defaultFile='text/shared/05/new_help.html';module="WRITER";break;} } + //Special case of application F1 or menu Help -> LibreOffice Help + if (target.indexOf('.uno:HelpIndex') != -1) { + window.location.href = lang + '/' + defaultFile + '?System=' + system + '&DbPAR=' + module; + } var bookmark = target.slice(target.indexOf('/') + 1, target.length); var file = hid2fileMap[bookmark]; // check first if a root bookmark @@nowidget@@ can be used diff --git a/source/text/shared/main0108.xhp b/source/text/shared/main0108.xhp index 9f0932ff64..e8f8d4d603 100644 --- a/source/text/shared/main0108.xhp +++ b/source/text/shared/main0108.xhp @@ -39,7 +39,6 @@
- $[officename] Help Opens the main page of the $[officename] Help for the current application. You can scroll through the Help pages and you can search for index terms or any text. @@ -105,4 +104,4 @@ - \ No newline at end of file + -- cgit