divio/django-cms — Issue #1185: Page not found always generates a redirect with APPEND_SLASH=True
Author: mihaisucan
Created: 2012-02-27 11:46:22+00:00
State: open

Django has `APPEND_SLASH=True` by default and that's cool because if you load `example.com/foobar` the common middleware appends a slash to the url if two conditions are met:
* `example.com/foobar` does not exist.
* `example.com/foobar/` exists.

Otherwise, the slash is not appended, and no redirect happens. You just get the 404 page not found error, which is expected.

This works well, but django cms "tricks" the urlresolver to make it believe it can handle `example.com/foobar/` or something like that, so the slash is appended and you get a redirect. Then you get 404 page not found.

Is this a bug in django or in django cms? I'm not sure, but i'd like it fixed. Thanks! ;)