diff --git a/openstack_dashboard/contrib/developer/profiler/middleware.py b/openstack_dashboard/contrib/developer/profiler/middleware.py index 91089a18c0..ef9a03d7c2 100644 --- a/openstack_dashboard/contrib/developer/profiler/middleware.py +++ b/openstack_dashboard/contrib/developer/profiler/middleware.py @@ -137,7 +137,7 @@ class ProfilerMiddleware(object): def clear_profiling_cookies(request, response): """Expire any cookie that initiated profiling request.""" if 'profile_page' in request.COOKIES: - path = request.path[:-1] + path = request.path response.set_cookie('profile_page', max_age=0, path=path) def process_response(self, request, response):