mirror of https://github.com/zulip/zulip.git
Django 1.10: Redirect is not permanent by default.
This commit is contained in:
parent
cfded8b5af
commit
eade575267
|
@ -101,12 +101,12 @@ i18n_urls = [
|
|||
url(r'^about/$', TemplateView.as_view(template_name='zerver/about.html')),
|
||||
url(r'^apps/$', TemplateView.as_view(template_name='zerver/apps.html')),
|
||||
|
||||
url(r'^robots\.txt$', RedirectView.as_view(url='/static/robots.txt')),
|
||||
url(r'^robots\.txt$', RedirectView.as_view(url='/static/robots.txt', permanent=True)),
|
||||
|
||||
# Landing page, features pages, signup form, etc.
|
||||
url(r'^hello/$', TemplateView.as_view(template_name='zerver/hello.html'),
|
||||
name='landing-page'),
|
||||
url(r'^new-user/$', RedirectView.as_view(url='/hello')),
|
||||
url(r'^new-user/$', RedirectView.as_view(url='/hello', permanent=True)),
|
||||
url(r'^features/$', TemplateView.as_view(template_name='zerver/features.html')),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue