Canonical URLs: Issue redirects where appropriate
-------------------------------------------------
Key: COUCHDB-340
URL: https://issues.apache.org/jira/browse/COUCHDB-340
Project: CouchDB
Issue Type: Improvement
Components: HTTP Interface
Reporter: Jason Davies
Priority: Minor
We should issue a redirect from http://127.0.0.1:5984/dbname ->
http://127.0.0.1:5984/dbname/ (note trailing slash) as the latter seems more
appropriate to represent the hierarchy. As for document URLs, I am thinking
they should probably also have a trailing slash, as it is possible to have
document attachments at the next level of the hierarchy. When using _show,
this would also mean links to attachments would be simpler.
As for view URLs (and _list), I don't see any reason for them to have trailing
slashes. In these cases, we should probably issue a 301 to the
non-trailing-slash URL, or issue a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.