Skip to content

[Request] support redirect to NON-trailing slash #11

Description

@mkorostoff

Currently, this module redirects /mypage to /mypage/. I'd like to do the reverse: redirect /mypage/ to /mypage. I prefer this method because 1) historically a trailing slash signifies a directory and 2) I just like the look of it better. This could be implemented with a config option like:

const slash = require('express-slash')
app.use(slash({mode: 'NOSLASH'}))

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