diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index fed3db7..289698d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -412,7 +412,7 @@ function AppInner() { } /> () const navigate = useNavigate() - const questionIdx = Math.max(0, (Number(n) || 1) - 1) + const questionIdx = Math.max(0, (Number((n ?? '').replace(/^q/, '')) || 1) - 1) // Deep link: restore from localStorage if no exam is active on mount useEffect(() => {