Skip to content

Commit

Permalink
Fix broken links in brands page
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Nov 13, 2024
1 parent 0779a7a commit 759bd79
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/cars/brands/[brand]/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ export const columns: ColumnDef<Car>[] = [
header: "Fuel Type",
cell: ({ row }) => {
const type = row.getValue("fuel_type") as string;
return <Link href={`/cars/${type.toLowerCase()}`}>{type}</Link>;
return (
<Link href={`/cars/fuel-types/${type.toLowerCase()}`}>{type}</Link>
);
},
},
{
accessorKey: "vehicle_type",
header: "Vehicle Type",
cell: ({ row }) => {
const type = row.getValue("vehicle_type") as string;
return <Link href={`/vehicle-types/${type.toLowerCase()}`}>{type}</Link>;
return (
<Link href={`/cars/vehicle-types/${type.toLowerCase()}`}>{type}</Link>
);
},
},
{
Expand Down

0 comments on commit 759bd79

Please sign in to comment.