diff --git a/designsafe/settings/common_settings.py b/designsafe/settings/common_settings.py index 4d293e61f1..63ca1cc24d 100644 --- a/designsafe/settings/common_settings.py +++ b/designsafe/settings/common_settings.py @@ -123,6 +123,7 @@ ) LOGIN_REDIRECT_URL = os.environ.get('LOGIN_REDIRECT_URL', '/account/') +LOGOUT_REDIRECT_URL = os.environ.get('LOGOUT_REDIRECT_URL', '/auth/logged-out/') CACHES = { 'default': { diff --git a/designsafe/urls.py b/designsafe/urls.py index 47fdba6768..d1cea41a6a 100644 --- a/designsafe/urls.py +++ b/designsafe/urls.py @@ -126,8 +126,7 @@ url(r'^auth/', include(('designsafe.apps.auth.urls', 'designsafe.apps.auth'), namespace='designsafe_auth')), url(r'^login/$', des_login_options, name='login'), - url(r'^logout/$', des_logout, - {'next_page': '/auth/logged-out/'}, name='logout'), + url(r'^logout/$', des_logout.as_view(), name='logout'), # help url(r'^help/', include(('designsafe.apps.djangoRT.urls', 'designsafe.apps.djangoRT'), namespace='djangoRT')),