TootBottomSheet: moved to /:acct/toot/:id

This commit is contained in:
thislight 2024-10-17 20:39:04 +08:00
parent 6284c7d18e
commit ddd3c99f30
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ const Routing: Component = () => {
<Route path="/region" component={RegionSettings}></Route>
<Route path="/motions" component={MotionSettings}></Route>
</Route>
<Route path="/:acct/:id" component={TootBottomSheet}></Route>
<Route path="/:acct/toot/:id" component={TootBottomSheet}></Route>
</Route>
<Route path={"/accounts"}>
<Route path={"/sign-in"} component={AccountSignIn} />

View file

@ -151,7 +151,7 @@ const Home: ParentComponent = (props) => {
);
const acct = `${inf.username}@${p.account.site}`;
setTootBottomSheetCache(acct, toot);
navigate(`/${encodeURIComponent(acct)}/${toot.id}`, {
navigate(`/${encodeURIComponent(acct)}/toot/${toot.id}`, {
state: reply
? {
tootReply: true,