diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index b0094210c7..c583273caf 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -70,7 +70,8 @@ async function getUserPageProps(context: GetStaticPropsContext) { const user = await prisma.user.findUnique({ where: { - username, + /** TODO: We should standarize this */ + username: username.toLowerCase().replace(/( |%20)/g, "+"), }, select: { id: true,