Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

(fix) Fixed broken non-selfhosted routes (#348)

Maksim Mrug66b90fa51569
diff --git a/app/routes/change-email.$id.tsx b/app/routes/change-email.$id.tsx
index 2d9208b58..7e4302797 100644
--- a/app/routes/change-email.$id.tsx
+++ b/app/routes/change-email.$id.tsx
@@ -14,6 +14,8 @@ export async function loader() {
if (isSelfhosted) {
return redirect('/login', 302)
}
+
+ return null
}
export const sitemap: SitemapFunction = () => ({
diff --git a/app/routes/open.tsx b/app/routes/open.tsx
index da72d07de..c8ad15d46 100644
--- a/app/routes/open.tsx
+++ b/app/routes/open.tsx
@@ -6,6 +6,8 @@ export async function loader() {
if (isSelfhosted) {
return redirect('/login', 302)
}
+
+ return null
}
export default function Index() {
diff --git a/app/routes/password-reset.$id.tsx b/app/routes/password-reset.$id.tsx
index 947199e60..4df876884 100644
--- a/app/routes/password-reset.$id.tsx
+++ b/app/routes/password-reset.$id.tsx
@@ -17,6 +17,8 @@ export async function loader() {
if (isSelfhosted) {
return redirect('/login', 302)
}
+
+ return null
}
export default function Index() {
diff --git a/app/routes/recovery.tsx b/app/routes/recovery.tsx
index 07ea11344..fe90e2766 100644
--- a/app/routes/recovery.tsx
+++ b/app/routes/recovery.tsx
@@ -12,6 +12,8 @@ export async function loader() {
if (isSelfhosted) {
return redirect('/login', 302)
}
+
+ return null
}
export default function Index() {
diff --git a/app/routes/verify.$id.tsx b/app/routes/verify.$id.tsx
index ffbf375d6..f673d0d8f 100644
--- a/app/routes/verify.$id.tsx
+++ b/app/routes/verify.$id.tsx
@@ -11,6 +11,8 @@ export async function loader() {
if (isSelfhosted) {
return redirect('/login', 302)
}
+
+ return null
}
export default function Index() {