mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-20 23:00:58 +00:00
Fixed temporary redirects
This commit is contained in:
parent
5dc45ad7dc
commit
6c33ce0212
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class RedirectMiddleware(object):
|
|||
if redirect.is_permanent:
|
||||
return http.HttpResponsePermanentRedirect(redirect.link)
|
||||
else:
|
||||
return http.HttpResponseTemporaryRedirect(redirect.link)
|
||||
return http.HttpResponseRedirect(redirect.link)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue