Use complete for redirect after logout

This commit is contained in:
Teemu Patja 2017-06-02 12:29:03 +03:00
parent 09c448d282
commit a2f788aa71
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 1 additions and 1 deletions

View File

@ -27,5 +27,5 @@
(GET "/" {{user :identity} :session}
(home-page user))
(GET "/logout" {session :session}
(assoc (redirect "/")
(assoc (redirect (str (env :server-address) "/"))
:session nil)))