Closed plicease closed 7 years ago
For example, if I do a GET on /foo/bar or /foo/bar/ I get this in the HTML listing:
/foo/bar
/foo/bar/
<tr><td class='name'><a href='../'>Parent Directory</a></td><td class='size'></td><td class='type'></td><td class='mtime'></td></tr>
Which is fine for the latter, but for the former /foo/ is the base url, and so ../ take me to / instead of /foo as you would expect.
/foo/
../
/
/foo
I believe most webservers handing this by forwarding directory listings without a trailing slash to the same URL with a trailing slash.
Sorry for being late. I fixed it in version 0.13.
https://metacpan.org/pod/release/HAYAJO/Mojolicious-Plugin-Directory-0.13/lib/Mojolicious/Plugin/Directory.pm
Thank you.
For example, if I do a GET on
/foo/bar
or/foo/bar/
I get this in the HTML listing:Which is fine for the latter, but for the former
/foo/
is the base url, and so../
take me to/
instead of/foo
as you would expect.I believe most webservers handing this by forwarding directory listings without a trailing slash to the same URL with a trailing slash.