-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Milestone
Description
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
Labels
No labels