mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00
Use "old-style" string format on doc URL redirect.
This eliminates a unicode error.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user