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 redirect

Blue Mousee5581f3897d5
diff --git a/app/root.tsx b/app/root.tsx
index 1cab9343b..a0dee3c5c 100644
--- a/app/root.tsx
+++ b/app/root.tsx
@@ -185,7 +185,7 @@ export async function loader({ request }: LoaderArgs) {
const urlObject = new URL(url)
if (!isSelfhosted && isWWW(urlObject)) {
- redirect(_replace(urlObject.href, 'www.', ''), 301)
+ return redirect(_replace(urlObject.href, 'www.', ''), 301)
}
const locale = detectLanguage(request)