Add state to QuizRunner links for navigation tracking
This commit is contained in:
@@ -549,7 +549,11 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
|
|||||||
Home
|
Home
|
||||||
</Link>
|
</Link>
|
||||||
{entryLink && (
|
{entryLink && (
|
||||||
<Link className="button button--ghost" to={entryLink}>
|
<Link
|
||||||
|
className="button button--ghost"
|
||||||
|
to={entryLink}
|
||||||
|
state={{ fromSummary: true }}
|
||||||
|
>
|
||||||
Back to learn page
|
Back to learn page
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
@@ -566,7 +570,7 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
|
|||||||
{idx + 1}. {question.prompt_en || 'Question'}
|
{idx + 1}. {question.prompt_en || 'Question'}
|
||||||
</div>
|
</div>
|
||||||
{isRandomMode && (
|
{isRandomMode && (
|
||||||
<Link className="entry-link" to={entryHref}>
|
<Link className="entry-link" to={entryHref} state={{ fromSummary: true }}>
|
||||||
Learn page »
|
Learn page »
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user