Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: ignore /signup redirect if pathname !== /

thecodrrc6b4541923da
diff --git a/apps/web/src/index.js b/apps/web/src/index.js
index 7cfdaa1d2..aa1570a4e 100644
--- a/apps/web/src/index.js
+++ b/apps/web/src/index.js
@@ -13,7 +13,7 @@ if (process.env.NODE_ENV === "production") {
initializeDatabase().then(async (db) => {
const isLoggedIn = !!(await db.user.getUser());
- if (!isLoggedIn && !window.location.pathname.startsWith("/signup"))
+ if (!isLoggedIn && window.location.pathname === "/")
window.location.replace("/signup");
import("react-dom").then(({ render }) => {