From 192747b9b98513fee164e9d9568e7e8ffe21bc3c Mon Sep 17 00:00:00 2001 From: Shay Patel Date: Wed, 24 Dec 2025 14:24:53 +0000 Subject: [PATCH] Clicking on header redirects to base URL --- frontend/app/layout.tsx | 9 ++++++++- frontend/app/manage/[id]/page.tsx | 5 +---- frontend/app/page.tsx | 5 +---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index 2a1ae4d..46957ed 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; import "./globals.css"; +import Link from "next/link"; export const metadata: Metadata = { title: "Halflink", @@ -14,7 +15,13 @@ export default function RootLayout({ return ( - {children} +
+ +

halflink

+

Shorten a link with ease.

+ + {children} +
); diff --git a/frontend/app/manage/[id]/page.tsx b/frontend/app/manage/[id]/page.tsx index 2aa326b..4260e1e 100644 --- a/frontend/app/manage/[id]/page.tsx +++ b/frontend/app/manage/[id]/page.tsx @@ -59,10 +59,7 @@ export default function Home() { }, [params.id]); return ( -
-

halflink

-

Shorten a link with ease.

- +
{errorMessage && (

{errorMessage}

)} diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 1e37bbc..7fe13a2 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -44,10 +44,7 @@ export default function Home() { } return ( -
-

halflink

-

Shorten a link with ease.

- +