xref: /help/help3xsl/help.html (revision 5ccfc30b)
1<!DOCTYPE html>
2<!--
3* This file is part of the LibreOffice project.
4*
5* This Source Code Form is subject to the terms of the Mozilla Public
6* License, v. 2.0. If a copy of the MPL was not distributed with this
7* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8-->
9<html>
10<head>
11    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
12    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org *.google.com *.googleapis.com"/>
13</head>
14<body>
15<script type="text/javascript">
16    function getParameterByName(name, url) {
17        if (!url) {
18            url = window.location.href;
19        }
20        name = name.replace(/[\[\]]/g, "\\$&");
21        var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
22        var results = regex.exec(url);
23        if (!results) {
24            return null;
25        }
26        if (!results[2]) {
27            return '';
28        }
29        return decodeURIComponent(results[2].replace(/\+/g, " "));
30    }
31
32    var url = window.location.href;
33    var n = url.indexOf('?');
34    if (n != -1) {
35        // the URL came from LibreOffice help (F1)
36        var version = getParameterByName("Version", url);
37        var query = url.substr(n + 1, url.length);
38        var newURL = version + '/index.html?' + query;
39        window.location.href = newURL;
40    } else {
41        window.location.href = 'latest/index.html';
42    }
43</script>
44</body>
45</html>
46
47