diff --git a/yesod-core/ChangeLog.md b/yesod-core/ChangeLog.md index db38fbd3..35ce9b77 100644 --- a/yesod-core/ChangeLog.md +++ b/yesod-core/ChangeLog.md @@ -1,3 +1,7 @@ +## 1.4.19 + +* Auth logout not working with defaultCsrfMiddleware [#1151](https://github.com/yesodweb/yesod/issues/1151) + ## 1.4.18.2 * Allow subsites within hierarchical routes [#1144](https://github.com/yesodweb/yesod/pull/1144) diff --git a/yesod-core/Yesod/Core/Handler.hs b/yesod-core/Yesod/Core/Handler.hs index 1bd2695e..7d9e6da7 100644 --- a/yesod-core/Yesod/Core/Handler.hs +++ b/yesod-core/Yesod/Core/Handler.hs @@ -890,6 +890,7 @@ redirectToPost :: (MonadHandler m, RedirectUrl (HandlerSite m) url) -> m a redirectToPost url = do urlText <- toTextUrl url + req <- getRequest withUrlRenderer [hamlet| $newline never $doctype 5 @@ -899,6 +900,8 @@ $doctype 5