Skip to content

Commit

Permalink
Make footnote links not craete history entries
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchmidt committed Nov 22, 2024
1 parent ae86429 commit 702f6e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dito/app/components/ParagraphList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ function PrincipleHighlight(
return principlesToShow.includes(number) ? (
<Link
id={highlightID}
onClick={() => onClick(highlightID, number)}
replace
to={`#${explanationID(baseLabelID, number)}`}
onClick={() => onClick(highlightID, number)}
aria-labelledby={baseLabelID}
className="!no-underline"
>
Expand Down Expand Up @@ -112,6 +113,7 @@ const PrincipleExplanation = ({
/>
{highlightID && (
<Link
replace
to={`#${highlightID}`}
className="ds-link-01-bold"
aria-label="Zurück zum Text"
Expand Down

0 comments on commit 702f6e3

Please sign in to comment.