From 00d547065a05b8b5bef4ea4d85190af38c0a494a Mon Sep 17 00:00:00 2001 From: Mohamad Mortada Date: Thu, 19 Jun 2025 14:53:42 -0700 Subject: [PATCH] fixed links not routing properly --- app/admin/projects/[projectId]/page.tsx | 5 +++-- app/bay/page.tsx | 5 +++-- app/gallery/page.tsx | 5 +++-- app/review/page.tsx | 5 +++-- lib/utils.ts | 5 +++++ 5 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 lib/utils.ts diff --git a/app/admin/projects/[projectId]/page.tsx b/app/admin/projects/[projectId]/page.tsx index a87161d3..7fdb03d2 100644 --- a/app/admin/projects/[projectId]/page.tsx +++ b/app/admin/projects/[projectId]/page.tsx @@ -15,6 +15,7 @@ import Icon from "@hackclub/icons"; import Modal from '@/components/common/Modal'; import { toast, Toaster } from 'sonner'; import FormInput from '@/components/form/FormInput'; +import { ensureHttps } from '@/lib/utils'; interface User { id: string; @@ -359,7 +360,7 @@ function ProjectDetailContent({ params }: { params: { projectId: string } }) {
{project.codeUrl && ( {project.codeUrl && ( import('@/components/common/ProjectChatModal'), { @@ -534,7 +535,7 @@ export default function Gallery() {
{project.codeUrl && ( import('./review-guidelines/shipped-approval.mdx')); const MDXViralApproval = lazy(() => import('./review-guidelines/viral-approval.mdx')); @@ -277,7 +278,7 @@ function ProjectDetail({ project, onClose, onReviewSubmitted }: {
{project.codeUrl && (