From 2b525c13fb23dcac5a4e94bd9df309b28dfbccc9 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sat, 7 Jun 2014 00:20:52 -0700 Subject: [PATCH] Fix double-logout bug with SSL --- templates/nav.jade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/nav.jade b/templates/nav.jade index 440f5543..52981008 100644 --- a/templates/nav.jade +++ b/templates/nav.jade @@ -55,11 +55,13 @@ mixin navloginform(redirect) button#login.btn.btn-default(type="submit") Login mixin navlogoutform(redirect) + if loginDomain == null + - loginDomain = "" if redirect - - url = "/logout?redirect=" + redirect + - url = "logout?redirect=" + redirect else - - url = "/logout" + - url = "logout" p#logoutform.navbar-text.pull-right span#welcome Welcome, #{loginName} span  ·  - a#logout.navbar-link(href=url) Logout + a#logout.navbar-link(href="#{loginDomain}/#{url}") Logout