Skip to content

remove paths ending with / with removeDirectoryIndex #190

@millette

Description

@millette

I had example.com/fr and I can remove the "/fr" part with removeDirectoryIndex.
I also wanted to remove "/fr/" from example.com/fr/ but since it ends with a slash (and removeTrailingSlash doesn't help here) I can't remove that path suffix.

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