Browse files

Fixed #16133 -- Correctly redirect the index pages.

  • Loading branch information...
1 parent 2bb8ec6 commit 1a3e1cee69ce106e132a6e006deab638c75bfb97 @jezdez jezdez committed Jul 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 django_website/docs/views.py
View
3 django_website/docs/views.py
@@ -60,7 +60,8 @@ def objects_inventory(request, lang, version):
return response
def redirect_index(request, *args, **kwargs):
- return redirect(request.path.rstrip('index/'))
+ assert request.path.endswith('index/')
+ return redirect(request.path[:-6])
class DocSearchView(haystack.views.SearchView):
def __init__(self, **kwargs):

0 comments on commit 1a3e1ce

Please sign in to comment.