wrong links in directory listings #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mike/bash-web-server#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the link to bar.txt is wrong it should link to foo/bar.txt
What you have makes sense to me - I'm not sure what the issue is?
Are you saying that:
should be:
Because if so, that is incorrect - your browser treats links as relative when they don't start with a protocol or a
/so having it link to just the basename of the file is correct.what i'm saying the current code only works for one level of directories. the moment you have multiple levels of nesting it won't work.
ok.. i think i found out why...
currently when you click a directory it will redirect to /foo and not /foo/ . if i manually change the address in the address bar it works
https://github.com/bahamas10/bash-web-server/pull/2
closing this as #2 was merged - thank you!