fix(journal-gatewayd): use relative urls (not starting with '/')
[thirdparty/systemd.git] / src / journal-remote / browse.html
index e5162d1..9a5ae80 100644 (file)
 
                 function machineLoad() {
                         var request = new XMLHttpRequest();
-                        request.open("GET", "/machine");
+                        request.open("GET", "machine");
                         request.onreadystatechange = machineOnResult;
                         request.setRequestHeader("Accept", "application/json");
                         request.send(null);
                                         range = "";
                         }
 
-                        var url = "/entries";
+                        var url = "entries";
 
                         if (localStorage["filter"] != "" && localStorage["filter"] != null) {
                                 url += "?_SYSTEMD_UNIT=" + escape(localStorage["filter"]);
 
                 function onMessageClick(t) {
                         var request = new XMLHttpRequest();
-                        request.open("GET", "/entries?discrete");
+                        request.open("GET", "entries?discrete");
                         request.onreadystatechange = onResultMessageClick;
                         request.setRequestHeader("Accept", "application/json");
                         request.setRequestHeader("Range", "entries=" + t + ":0:1");
 
                 function onFilterFocus(w) {
                         var request = new XMLHttpRequest();
-                        request.open("GET", "/fields/_SYSTEMD_UNIT");
+                        request.open("GET", "fields/_SYSTEMD_UNIT");
                         request.onreadystatechange = onResultFilterFocus;
                         request.setRequestHeader("Accept", "application/json");
                         request.send(null);