X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=blobdiff_plain;f=src%2Fapi-viewer%2FAPIViewer.js;h=c6580bbb67094f97a9161a171f6050ea66798ff1;hp=8f3759ea043f7ed072fdeef507d86c259d98390b;hb=f0de3268af7c3afc59cad8a487fe1b0c14cf77da;hpb=6cc360f2b486ed52b370647c770ab53c78e86e62 diff --git a/src/api-viewer/APIViewer.js b/src/api-viewer/APIViewer.js index 8f3759e..c6580bb 100644 --- a/src/api-viewer/APIViewer.js +++ b/src/api-viewer/APIViewer.js @@ -115,6 +115,9 @@ Ext.onReady(function() { }; let real_path = function(path) { + if (!path.match(/^[/]/)) { + path = `/${path}`; + } return path.replace(/^.*\/_upgrade_(\/)?/, "/"); };