From 7a10e9fc84e4a49cf66566fe54206ef68b252fdf Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Mon, 2 Mar 2020 10:09:43 -0800 Subject: [PATCH] Remove returnTo parameter for logout --- lib/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index b3892cbf..873806d6 100644 --- a/lib/context.js +++ b/lib/context.js @@ -105,7 +105,7 @@ class ResponseContext { const res = this._res; const config = this._config; - let returnURL = params.returnTo || req.query.returnTo || config.postLogoutRedirectUri; + let returnURL = params.returnTo || config.postLogoutRedirectUri; if (url.parse(returnURL).host === null) { returnURL = urlJoin(config.baseURL, returnURL);