summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-04-20 14:41:47 +0000
committerJannis Leidel <jannis@leidel.info>2011-04-20 14:41:47 +0000
commit196ac8f8b31302d026af6d79f764c8f146a8c78e (patch)
treeb508e4cdc928faf1227a03ad8f5fe0b9beb129dc /tests/regressiontests/admin_scripts
parent96520e87bdd37a6a32c49cfa2df124421f6ec3ed (diff)
Fixed #6213 -- Updated the flatpages app to only append a slash if the flatpage actually exist.
The FlatpageFallbackMiddleware (and the view) now only add a trailing slash and redirect if the resulting URL refers to an existing flatpage. Previously requesting /notaflatpageoravalidurl would redirect to /notaflatpageoravalidurl/, which would then raise a 404. Requesting /notaflatpageoravalidurl now will immediately raise a 404. Also, Redirects returned by flatpages are now permanent (301 status code) to match the behaviour of the CommonMiddleware. Thanks to Steve Losh for the initial work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts')
0 files changed, 0 insertions, 0 deletions