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_(\/)?/, "/"); };