mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +01:00
Fix hashtag url not working
This commit is contained in:
parent
82d88dbe10
commit
7edf63d41b
1 changed files with 2 additions and 1 deletions
|
@ -186,7 +186,8 @@ export const SHORTCUTS_META = {
|
||||||
id: 'hashtag',
|
id: 'hashtag',
|
||||||
title: ({ hashtag }) => hashtag,
|
title: ({ hashtag }) => hashtag,
|
||||||
subtitle: ({ instance }) => instance,
|
subtitle: ({ instance }) => instance,
|
||||||
path: ({ hashtag }) => `/t/${hashtag.split(/\s+/).join('+')}`,
|
path: ({ hashtag, instance }) =>
|
||||||
|
`${instance ? `/${instance}` : ''}/t/${hashtag.split(/\s+/).join('+')}`,
|
||||||
icon: 'hashtag',
|
icon: 'hashtag',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue