Skip to content

Incorrect Priority When Serving filePath.html vs. filePath/index.html #14

@aryanmehrotra

Description

@aryanmehrotra

Description:
Currently, when a request is made to a path (e.g., /index), the server prioritizes serving filePath/index.html if filePath is a directory. However, if both filePath.html and filePath/ exist, the expected behavior is to serve filePath.html first before checking inside the directory.

Expected Behavior:
If filePath.html exists, serve it first.
If filePath.html does not exist but filePath/ is a directory, serve filePath/index.html.
If neither exists, return a 404 Not Found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions