diff --git a/src/components/layouts/navbar/index.tsx b/src/components/layouts/navbar/index.tsx index d7c2434ca..d7da17790 100644 --- a/src/components/layouts/navbar/index.tsx +++ b/src/components/layouts/navbar/index.tsx @@ -10,7 +10,7 @@ import Logo from "~/components/common/logo"; const navlinks = [ { route: "Home", link: "/" }, { route: "Pricing", link: "/pricing" }, - { route: "Features", link: "/" }, + { route: "Careers", link: "/career" }, ]; const Navbar = () => { diff --git a/src/middleware.ts b/src/middleware.ts index 28546a12a..37cfadfcd 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -17,7 +17,7 @@ export default async function middleware(request: NextRequest) { const url = request.nextUrl; let hostname = request.headers .get("host")! - .replace(".localhost:3000", ".hng-boilerplate.com"); + .replace(/\.localhost(:\d+)?/, ".hng-boilerplate.com"); hostname = hostname.replace("www.", ""); // remove www. from domain const searchParameters = request.nextUrl.searchParams.toString();