Skip to content

Crawl: Error when url contains query parameter #113

@jahredhope

Description

@jahredhope

I get the following error when using crawl to automatically find paths.
Error: EISDIR: illegal operation on a directory, open '{dir}'
This error appears half-way through creating files, the file that it got up to will be empty and no further files will be rendered.

I believe this is due to StaticSiteGeneratorPlugin attempting to generate file twice when it picks up two paths that differ only by query parameters.

When adding console.log just after the call to pathToAssetName I recieve an output of

assetName foo/bar/index.html
assetName foo/bar?id=123&m=val/index.html

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