From 0a129087842715a5f0f463c3015694b2eee40c4b Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Mon, 9 Dec 2019 15:04:21 +0100 Subject: [PATCH] remove unnecessary goto --- src/plugins/share/server/routes/goto.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/plugins/share/server/routes/goto.ts b/src/plugins/share/server/routes/goto.ts index 454beddd19c92..7343dc1bd34a2 100644 --- a/src/plugins/share/server/routes/goto.ts +++ b/src/plugins/share/server/routes/goto.ts @@ -53,13 +53,12 @@ export const createGotoRoute = ({ location: http.basePath.prepend(url), }, }); - } else { - return response.redirected({ - headers: { - location: http.basePath.prepend('/goto_LP/' + request.params.urlId), - }, - }); } + return response.redirected({ + headers: { + location: http.basePath.prepend('/goto_LP/' + request.params.urlId), + }, + }); }) ); };