Skip to content

Commit

Permalink
fix relative links from calendar tasks (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewangler authored Nov 18, 2023
1 parent 9cdb4b6 commit 5eb66c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function Task(props: TaskT) {
const targets = props.targets.map((target) => target['rolle']).join(', ')
const responsible = props.responsible.map((responsible) => props.t(`target.role.${responsible['rolle']}`)).join(', ')
const chapters = props.chapters.map(function(chapter) {
return <li key={chapter.slug}><HashLink to={chapter.section.slug + '#' + chapter.slug}>{chapter.title}</HashLink></li>
const link = `/${chapter.section.slug}#${chapter.slug}`
return <li key={chapter.slug}><HashLink to={link}>{chapter.title}</HashLink></li>
})
return <tr>
<td>{deadline}</td>
Expand Down

0 comments on commit 5eb66c8

Please sign in to comment.