]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/api-viewer/APIViewer.js
api-viewer: ensure path starts with slash
[proxmox-widget-toolkit.git] / src / api-viewer / APIViewer.js
index 8f3759ea043f7ed072fdeef507d86c259d98390b..c6580bbb67094f97a9161a171f6050ea66798ff1 100644 (file)
@@ -115,6 +115,9 @@ Ext.onReady(function() {
     };
 
     let real_path = function(path) {
+       if (!path.match(/^[/]/)) {
+           path = `/${path}`;
+       }
        return path.replace(/^.*\/_upgrade_(\/)?/, "/");
     };