Skip to content

Commit

Permalink
🐛 fix: Correct tutorial links in TutorialsSidebar
Browse files Browse the repository at this point in the history
Fix tutorial links by changing URL paths from `/tutorials/` to `/tutorial/`. This ensures that links point to the correct tutorial pages.
  • Loading branch information
Sorok-Dva committed Aug 15, 2024
1 parent e41bce1 commit af35604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Tutorials/TutorialsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const TutorialsSidebar: React.FC = () => {
<div className="post-wrap">
{popularTutorials.map((tutorial) => (
<article key={tutorial.id} className="item">
<Link to={`/tutorials/${tutorial.id}/${slugify(tutorial.title)}`} className="thumb">
<Link to={`/tutorial/${tutorial.id}/${slugify(tutorial.title)}`} className="thumb">
<span
className="fullimage cover"
role="img"
Expand All @@ -43,7 +43,7 @@ const TutorialsSidebar: React.FC = () => {
<div className="info">
<time>{new Date(tutorial.createdAt).toLocaleDateString('fr-FR')}</time>
<h4 className="title usmall">
<Link to={`/tutorials/${tutorial.id}/${slugify(tutorial.title)}`}>
<Link to={`/tutorial/${tutorial.id}/${slugify(tutorial.title)}`}>
{tutorial.title}
</Link>
</h4>
Expand Down

0 comments on commit af35604

Please sign in to comment.