diff options
-rw-r--r-- | openstack_dashboard/context_processors.py | 1 | ||||
-rw-r--r-- | openstack_dashboard/templates/header/_user_menu.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py index 676e335e2..faf5afbd2 100644 --- a/openstack_dashboard/context_processors.py +++ b/openstack_dashboard/context_processors.py @@ -87,6 +87,7 @@ def openstack(request): context['WEBROOT'] = settings.WEBROOT context['USER_MENU_LINKS'] = settings.USER_MENU_LINKS + context['LOGOUT_URL'] = settings.LOGOUT_URL # Adding profiler support flag profiler_settings = settings.OPENSTACK_PROFILER diff --git a/openstack_dashboard/templates/header/_user_menu.html b/openstack_dashboard/templates/header/_user_menu.html index 66c0cacc7..6cc26ca8c 100644 --- a/openstack_dashboard/templates/header/_user_menu.html +++ b/openstack_dashboard/templates/header/_user_menu.html @@ -59,7 +59,7 @@ {% endif %} <li class="divider"></li> <li> - <a href="{% url 'logout' %}" target="_self"> + <a href="{{ LOGOUT_URL }}" target="_self"> <span class="fa fa-sign-out"></span> {% trans "Sign Out" %} </a> |