diff --git a/src/App.tsx b/src/App.tsx index 9f5936b..f171cc6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,11 +50,11 @@ function transferProblem(state: TestnetSnapshot, card: CardData, address: string } export default function App() { - // Deep links (Night 2, ui-pvp): /play/invite/ opens Play with the invite; /battle/ is a recap page. + // Deep links (Night 2, ui-pvp): /play/invite/ opens Play with the invite; /recap/ (or /battle/) is a recap page. const [invite] = useState(() => inviteFromPath(location.pathname)); const [battle, setBattle] = useState(() => matchIdFromPath(location.pathname)); const [view, setView] = useState(() => (invite ? 'Play' : 'Discover')); - const openRecap = (id: string) => { history.pushState(null, '', `/battle/${encodeURIComponent(id)}`); setBattle(id); }; + const openRecap = (id: string) => { history.pushState(null, '', `/recap/${encodeURIComponent(id)}`); setBattle(id); }; const closeRecap = () => { history.pushState(null, '', '/'); setBattle(''); }; useEffect(() => { const pop = () => setBattle(matchIdFromPath(location.pathname)); @@ -174,7 +174,7 @@ export default function App() { catch (e) { setError(message(e)); } }; - // /battle/: a standalone, shareable recap page (no hero or mining panel around it). + // /recap/: a standalone, shareable recap page (no hero or mining panel around it). if (battle) return
; return