Skip to content

when checking a link, the module should add /index.html at the end of the link #20

@oupala

Description

@oupala

After fixing a bug in another module (aymericbeaumet/metalsmith-redirect#19), we discovered that metalsmith broken-link-checker could be improved to add /index.html add the end of a link when checking if it does exist.

So in the end, it looks like there is a bug in metalsmith-broken-link-checker as we would expect it to apply a fallback strategy where it would try appending /index.html to every link which looks like a directory (path.extname(link) === '' in a web environment).

You can check and reproduce the test case here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions