help3xsl/index2.html |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c13eb798f7eb33dbaa98fdd09ddb5374c5fbf0fc
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Wed Aug 2 01:38:49 2023 +0200
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Wed Aug 2 10:59:28 2023 +0200

    tdf#156573 Correctly resolve HID with "?" character
    
    Change-Id: I1642e5c56d0d67fe4170358a61ec786f313029e1
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155184
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/help3xsl/index2.html b/help3xsl/index2.html
index c08335e08c..2394c084e1 100644
--- a/help3xsl/index2.html
+++ b/help3xsl/index2.html
@@ -45,6 +45,8 @@
                 window.location.replace(lang + '/' + defaultFile + '?System=' 
+ system + '&DbPAR=' + module);
             }
             var bookmark = target.slice(target.indexOf('/') + 1, 
target.length);
+            // tdf#156573 Replace character "?" by "%3F"
+            bookmark = bookmark.replace("?", "%3F");
             var file = hid2fileMap[bookmark];
             // check first if a root bookmark @@nowidget@@ can be used
             if (file === undefined) {

Reply via email to