Skip to content

Commit 702f6e3

Browse files
Make footnote links not craete history entries
1 parent ae86429 commit 702f6e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/dito/app/components/ParagraphList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ function PrincipleHighlight(
5757
return principlesToShow.includes(number) ? (
5858
<Link
5959
id={highlightID}
60-
onClick={() => onClick(highlightID, number)}
60+
replace
6161
to={`#${explanationID(baseLabelID, number)}`}
62+
onClick={() => onClick(highlightID, number)}
6263
aria-labelledby={baseLabelID}
6364
className="!no-underline"
6465
>
@@ -112,6 +113,7 @@ const PrincipleExplanation = ({
112113
/>
113114
{highlightID && (
114115
<Link
116+
replace
115117
to={`#${highlightID}`}
116118
className="ds-link-01-bold"
117119
aria-label="Zurück zum Text"

0 commit comments

Comments
 (0)