]> Untitled Git - lemmy-ui.git/commitdiff
Fix server redirect error
authorabias <abias1122@gmail.com>
Sun, 14 May 2023 18:59:42 +0000 (14:59 -0400)
committerabias <abias1122@gmail.com>
Sun, 14 May 2023 18:59:42 +0000 (14:59 -0400)
src/server/index.tsx

index 808828871e81efe93da5ef2dbf4325c5afcf6edf..e724fbda1a848546983c4b335d36c97e19c74b5b 100644 (file)
@@ -142,7 +142,9 @@ server.get("/*", async (req, res) => {
 
     if (!auth && isAuthPath(path)) {
       res.redirect("/");
+      return;
     }
+
     const site: GetSiteResponse = try_site;
     initializeSite(site);