Skip to content

Commit 5980213

Browse files
committed
fix: changed path from project/ to projects/
1 parent ec804a2 commit 5980213

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

app/projects/[projectId]/page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// app/project/[projectId]/page.jsx
1+
// app/projects/[projectId]/page.jsx
22
// Server Component — runs at build time for static export.
33
// Reads the media folder here (Node fs) and passes results as props
44
// to the client component, which can't use fs.

components/ProjectDetails.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,14 +859,20 @@ export default function ProjectDetails({
859859
{/* ── Project nav ── */}
860860
<div className="pd-nav">
861861
{findPrev(project) ? (
862-
<Link href={`/project/${findPrev(project)}`} className="pd-nav-btn">
862+
<Link
863+
href={`/projects/${findPrev(project)}`}
864+
className="pd-nav-btn"
865+
>
863866
<FaArrowLeft /> Previous
864867
</Link>
865868
) : (
866869
<span />
867870
)}
868871
{findNext(project) && (
869-
<Link href={`/project/${findNext(project)}`} className="pd-nav-btn">
872+
<Link
873+
href={`/projects/${findNext(project)}`}
874+
className="pd-nav-btn"
875+
>
870876
Next <FaArrowRight />
871877
</Link>
872878
)}

components/Projects.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default function Projects() {
201201
<h3>{project.title}</h3>
202202
<div className="overlay-buttons">
203203
<Link
204-
href={`/project/${project.id}`}
204+
href={`/projects/${project.id}`}
205205
className="btn-view"
206206
>
207207
View Details

0 commit comments

Comments
 (0)