emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.03k stars 83 forks source link

Skip link to parent directory when in root #33

Closed TurtleWilly closed 7 months ago

TurtleWilly commented 1 year ago

When darkhttp serves a directory with generated directory indexes it should skip adding the "parent link" (<a href="../">..</a>) for the root level. The link just goes nowhere basically and just creates user confusion (especially when only serving a single flat directory).

emikulic commented 1 year ago

This sounds reasonable, I'd merge a patch that does this.