TootBottomSheet: moved to /:acct/toot/:id
This commit is contained in:
parent
5b72160cdb
commit
b5da86fa5c
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ const Routing: Component = () => {
|
||||||
<Route path="/region" component={RegionSettings}></Route>
|
<Route path="/region" component={RegionSettings}></Route>
|
||||||
<Route path="/motions" component={MotionSettings}></Route>
|
<Route path="/motions" component={MotionSettings}></Route>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/:acct/:id" component={TootBottomSheet}></Route>
|
<Route path="/:acct/toot/:id" component={TootBottomSheet}></Route>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path={"/accounts"}>
|
<Route path={"/accounts"}>
|
||||||
<Route path={"/sign-in"} component={AccountSignIn} />
|
<Route path={"/sign-in"} component={AccountSignIn} />
|
||||||
|
|
|
@ -151,7 +151,7 @@ const Home: ParentComponent = (props) => {
|
||||||
);
|
);
|
||||||
const acct = `${inf.username}@${p.account.site}`;
|
const acct = `${inf.username}@${p.account.site}`;
|
||||||
setTootBottomSheetCache(acct, toot);
|
setTootBottomSheetCache(acct, toot);
|
||||||
navigate(`/${encodeURIComponent(acct)}/${toot.id}`, {
|
navigate(`/${encodeURIComponent(acct)}/toot/${toot.id}`, {
|
||||||
state: reply
|
state: reply
|
||||||
? {
|
? {
|
||||||
tootReply: true,
|
tootReply: true,
|
||||||
|
|
Loading…
Reference in a new issue