OdifYltsaeb / django-multilingual

Automatically exported from code.google.com/p/django-multilingual
MIT License
0 stars 0 forks source link

flatpage middleware/views don't work with urls missing a trailing slash #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a multilingual flatpage via the admin, with a trailing slash in the url 
2. Try to access it via the url with missing trailing slash.
3. You will receive a 404

What is the expected output? What do you see instead?
Expected being redirected to the correct URL, got a 404.

What versions of django and multilingual are you using? On what operating
system?
Using trunk (rev 174) on Mac OS X Leopard, 10.5.6

Please provide any additional information below.
I checked the original flatpage app, and the issue has been known in
contrib.flatpages for a while but got fixed in 8218
(http://code.djangoproject.com/changeset/8218). I lifted the changes from
that file and created a patch for views.py (see attachment). Seems to work
fine, but a bit of further testing never hurts. :-)

Original issue reported on code.google.com by bjorklun...@gmail.com on 13 Mar 2009 at 10:47

Attachments:

GoogleCodeExporter commented 8 years ago
Hell it's about time. :-) Thanks for the patch - works great for me.

Original comment by Florian....@gmail.com on 25 Mar 2009 at 2:41

GoogleCodeExporter commented 8 years ago
Applied patch on issue #96, which fixes this one too.

Original comment by panos.la...@gmail.com on 15 Dec 2009 at 11:31