Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory listing has broken links, missing a slash between file and directory #119

holmok opened this issue Sep 26, 2018 · 0 comments


Copy link

@holmok holmok commented Sep 26, 2018

Tried this in a plugin route, then I just added it to the server itself and got the same problem. Here is a snippet I have that I run prior to server.start()

await server.register(Inert);

    method: 'GET',
    path: '/logs/{param*}',
    handler: {
        directory: {
            path: 'logs',
            listing: true

this will list the logs in the logs directory, but the links look like this:

<a href="/logstrace_context.log">trace_context.log</a>
@kanongil kanongil added the bug label Apr 2, 2019
@kanongil kanongil added this to the 5.1.3 milestone Apr 2, 2019
@kanongil kanongil self-assigned this Apr 2, 2019
@kanongil kanongil closed this in fc143b3 Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.