Browse files

Merge branch 'master' of github.com:django/djangoproject.com

  • Loading branch information...
2 parents 1f94e0e + 1a3e1ce commit 694d9f05e3e54bc1d7383c211382ff8e1b8b8d0b @jacobian jacobian committed Aug 15, 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 694d9f0

Please sign in to comment.