Skip to content

StripTrailingSlash prevents an index file from being routed. #219

Closed
@Retired

Description

@Retired

The following code should be sufficient to illustrate the issue.

e := echo.New()
e.StripTrailingSlash()
e.Index("public/index.html")
e.Run(":8000")

Assuming that index.html exists within a public folder in the same directory as the Go file containing the code above, going to http://localhost:8000 returns a 404 instead of index.html.

Commenting out the StripTrailingSlash line fixes the issue.

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