瀏覽代碼

[core] Add a logout url with hue prefix

For consistency with API
Romain Rigaux 4 年之前
父節點
當前提交
ae5b51aa65
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/urls.py

+ 1 - 0
desktop/core/src/desktop/urls.py

@@ -66,6 +66,7 @@ handler500 = 'desktop.views.serve_500_error'
 # Some django-wide URLs
 dynamic_patterns = [
   re_path(r'^hue/accounts/login', desktop_auth_views.dt_login, name='desktop_auth_views_dt_login'),
+  re_path(r'^hue/accounts/logout/?$', desktop_auth_views.dt_logout, {'next_page': '/'}),
   re_path(r'^accounts/login/?$', desktop_auth_views.dt_login), # Deprecated
   re_path(r'^accounts/logout/?$', desktop_auth_views.dt_logout, {'next_page': '/'}),
   re_path(r'^profile$', desktop_auth_views.profile),