Skip to content

Trailing slash breaks url #323

@mrkvon

Description

@mrkvon

https://trustroots.org/profile/:someusername is ok, but
https://trustroots.org/profile/:someusername/ leads to 404 not exist.
the same with /search vs. /search/ and other urls.
Maybe it's by design, but it is confusing, i.e. when one writes a link from one's (human) memory and adds the slash accidentally (happened already).
I'm not sure about best practices/standards for this, but enabling it or (permanent?) redirect would be cool.

fast research:
possible fix: http://stackoverflow.com/questions/13442377/redirect-all-trailing-slashes-gloablly-in-express
some fun with redirecting and trailing slashes: http://expressjs.com/en/api.html#res.redirect
and some article etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions