Fix wrong paths again

This commit is contained in:
Lim Chee Aun 2023-02-11 16:27:40 +08:00
parent 4b28b6f366
commit 0a7189d35a
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ function AccountStatuses() {
const [account, setAccount] = useState({});
useTitle(
`${account?.acct ? '@' + account.acct : 'Posts'}`,
'/a/:instance?/:id',
'/:instance?/a/:id',
);
useEffect(() => {
(async () => {

View file

@ -11,7 +11,7 @@ function Hashtags() {
let { hashtag, ...params } = useParams();
const { masto, instance } = api({ instance: params.instance });
const title = instance ? `#${hashtag} on ${instance}` : `#${hashtag}`;
useTitle(title, `/t/:instance?/:hashtag`);
useTitle(title, `/:instance?/t/:hashtag`);
const hashtagsIterator = useRef();
async function fetchHashtags(firstLoad) {
if (firstLoad || !hashtagsIterator.current) {

View file

@ -13,7 +13,7 @@ function Public({ local }) {
const params = useParams();
const { masto, instance } = api({ instance: params.instance });
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
useTitle(title, `/p/l?/:instance`);
useTitle(title, `:instance?/p/l?`);
const publicIterator = useRef();
async function fetchPublic(firstLoad) {