Skip to content

Scheduling infrastructure for absolutely everyone.

Wrong username is identified if query params are present and user doesn't exist (#2838)

GitStart2560b72596d4
diff --git a/apps/web/pages/404.tsx b/apps/web/pages/404.tsx
index 90a54f04fab..4503e3eae81 100644
--- a/apps/web/pages/404.tsx
+++ b/apps/web/pages/404.tsx
@@ -15,7 +15,7 @@ export default function Custom404() {
const { t } = useLocale();
const router = useRouter();
- const username = router.asPath.replace("%20", "-");
+ const username = router.asPath.replace("%20", "-").split(/[?#]/)[0];
const links = [
{