TootBottomSheet: fix context switch wrong target

This commit is contained in:
thislight 2024-10-18 18:13:07 +08:00
parent da60702403
commit 54db6d4fbe

View file

@ -161,7 +161,7 @@ const TootBottomSheet: Component = (props) => {
return; return;
} }
setCache(params.acct, status); setCache(params.acct, status);
navigate(`/${params.acct}/${status.id}`, { navigate(`/${params.acct}/toot/${status.id}`, {
state: { state: {
tootBottomSheetPushedCount: pushedCount() + 1, tootBottomSheetPushedCount: pushedCount() + 1,
}, },