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@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
diff --git a/help3xsl/help.js b/help3xsl/help.js
index e806eee..7789c17 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;