[Libreoffice-commits] help.git: Branch 'libreoffice-6-2' - help3xsl/help.js
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Apr 25 11:04:09 UTC 2019
help3xsl/help.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 455c31acf023c7c739629eb41eb957c5727dd62d
Author: Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
AuthorDate: Tue Apr 23 13:02:54 2019 +0200
Commit: Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Thu Apr 25 13:03:49 2019 +0200
tdf#124725 use window.location.pathname
So any backslashes will be forward instead.
Change-Id: I92aa4e0e6cb599431ba16da5bc481f5ad3877481
Reviewed-on: https://gerrit.libreoffice.org/71124
Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Tested-by: Jenkins
diff --git a/help3xsl/help.js b/help3xsl/help.js
index e806eeed4..7789c17ae 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -8,7 +8,7 @@
*/
// Pagination and fuzzy search
-var url = document.URL;
+var url = window.location.pathname;
var moduleRegex = new RegExp('text\\/(\\w+)\\/');
var regexArray = moduleRegex.exec(url);
var currentModule = null;
More information about the Libreoffice-commits
mailing list