From: abias Date: Sun, 14 May 2023 18:59:42 +0000 (-0400) Subject: Fix server redirect error X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/%7Brss%7D?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);