Skip to content
This repository
Browse code

Use proper variable.

  • Loading branch information...
commit 51900bb3e0fbc42506e05a70c99794e180a8ddf9 1 parent c76c9ce
Eric Holscher ericholscher authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  readthedocs/core/views.py
3  readthedocs/core/views.py
@@ -252,11 +252,10 @@ def subproject_serve_docs(request, project_slug, lang_slug=None, version_slug=No
252 252 if lang_slug == None or version_slug == None:
253 253 # Handle /
254 254 version_slug = proj.get_default_version()
255   - lang_slug = proj.language
256 255 url = reverse('subproject_docs_detail', kwargs={
257 256 'project_slug': project_slug,
258 257 'version_slug': version_slug,
259   - 'lang_slug': language,
  258 + 'lang_slug': proj.language,
260 259 'filename': filename
261 260 })
262 261 return HttpResponseRedirect(url)

0 comments on commit 51900bb

Please sign in to comment.
Something went wrong with that request. Please try again.