We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ccd39 commit 48f10ceCopy full SHA for 48f10ce
commands/http.js
@@ -97,7 +97,9 @@ class HttpCommand extends Command {
97
return a.filename.toLowerCase() < b.filename.toLowerCase() ? -1 : 1;
98
});
99
files.forEach(f => {
100
- htmlContent += `<li><a href="${url.pathname}/${f.filename}">${f.filename}</a></li>`;
+ let p = url.pathname === '/' ? '.' : url.pathname;
101
+ p = p + '/' + f.filename;
102
+ htmlContent += `<li><a href="${p}">${f.filename}</a></li>`;
103
104
htmlContent += '</ul>';
105
result(htmlContent, 200, { 'Content-Type': 'text/html' });
0 commit comments