Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Fix: route path

Khuram Niaz4234c0808d83
diff --git a/src/components/NavLink.tsx b/src/components/NavLink.tsx
index 4352ed8..76ad3ee 100644
--- a/src/components/NavLink.tsx
+++ b/src/components/NavLink.tsx
@@ -19,7 +19,8 @@ interface NavLinkProps {
}
function NavLink({ label, Icon, route, pathname }: NavLinkProps) {
- const isActive = route === pathname || pathname.startsWith(`${route}/`);
+ const isActive =
+ route === pathname || pathname.startsWith(`${route}/dashboard`);
return (
<Tooltip>
<TooltipTrigger asChild>
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 236daef..3f19f02 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -39,7 +39,7 @@ function Sidebar() {
<NavLink
label="Settings"
Icon={Settings}
- route="/settings"
+ route="/dashboard/settings"
pathname={path}
/>
</TooltipProvider>
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 06c01e7..93b3312 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -9,22 +9,22 @@ import {
export const SIDEBAR_LINKS = [
{
icon: LayoutDashboard,
- route: "/",
+ route: "/dashboard",
label: "Dashboard",
},
{
icon: BriefcaseBusiness,
- route: "/myjobs",
+ route: "/dashboard/myjobs",
label: "My Jobs",
},
{
icon: CalendarClock,
- route: "/activities",
+ route: "/dashboard/activities",
label: "Activities",
},
{
icon: UserRound,
- route: "/profile",
+ route: "/dashboard/profile",
label: "Profile",
},
{