From: abias Date: Sun, 14 May 2023 18:59:42 +0000 (-0400) Subject: Fix server redirect error X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7BpictshareAvatarThumbnail%28?a=commitdiff_plain;h=8f2d964062a2715a528dcbf7f57b5612549b109c;p=lemmy-ui.git Fix server redirect error --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 8088288..e724fbd 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -142,7 +142,9 @@ server.get("/*", async (req, res) => { if (!auth && isAuthPath(path)) { res.redirect("/"); + return; } + const site: GetSiteResponse = try_site; initializeSite(site);