Use "old-style" string format on doc URL redirect.

This eliminates a unicode error.
This commit is contained in:
Jonathan S. Katz
2018-11-05 10:50:14 -05:00
parent 27d1dd827d
commit 4bdb128d01

View File

@ -73,7 +73,7 @@ def docspermanentredirect(request, version, typ, page, *args):
"""Provides a permanent redirect from the old static/interactive pages to
the modern pages that do not have said keywords.
"""
url = "/docs/{}/".format(version)
url = "/docs/%s/" % version
if page:
url += page
return HttpResponsePermanentRedirect(url)