TootBottomSheet: fix context switch wrong target

This commit is contained in:
thislight 2024-10-18 18:13:07 +08:00
parent 657c886fab
commit e9c39492ec
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

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,
}, },