t.w2.r.Resource.addSlash = True should be the default behavior.

Description

addSlash toggles a very desirable redirect behavior for collection resources. I'm reasonably certain I've never wanted it set to false, however I'm assured by idnar that the HTTP request roundtrip caused by the redirect is undesirable in certain specific network conditions. So I propose that we change the default behavior to addSlash = True.

Oldest firstNewest firstThreaded

Show commentsShow property changes

Change History (2)

addSlash is a pretty confusing feature and probably should never have been added in the first place, at least in this manner. It certainly shouldn't be a base feature of Resource. Perhaps what you want is a specific resource.Collection object, which always does this, and a resource.Resource object, which never does, rather than a flag.