Fix shouldPersistSearch for Pleroma flake ids
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
0c499b43ff
commit
99e262ab8a
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ const Search = (props: ISearch) => {
|
|||
useEffect(() => {
|
||||
return () => {
|
||||
const newPath = history.location.pathname;
|
||||
const shouldPersistSearch = !!newPath.match(/@.+\/posts\/\d+/g)
|
||||
const shouldPersistSearch = !!newPath.match(/@.+\/posts\/[a-zA-Z0-9]+/g)
|
||||
|| !!newPath.match(/\/tags\/.+/g);
|
||||
|
||||
if (!shouldPersistSearch) {
|
||||
|
|
Loading…
Reference in a new issue