Add "Go back to Puzzles" option

Add a "Go back to Puzzles" option to the Knights Puzzle interactive when accessed from the puzzles page.
This commit is contained in:
gpt-engineer-app[bot] 2025-07-21 09:21:44 +00:00
parent 14a244160a
commit 6eb57f0380
2 changed files with 19 additions and 2 deletions

View file

@ -39,7 +39,7 @@ const Puzzles = () => {
difficulty={puzzle.difficulty}
duration={puzzle.duration}
participants={puzzle.participants}
onClick={() => navigate(puzzle.path)}
onClick={() => navigate(`${puzzle.path}?from=puzzles`)}
/>
))}
</div>