kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'search-persist-fix' into 'develop'
Fix shouldPersistSearch for Pleroma flake ids See merge request soapbox-pub/soapbox!2535environments/review-develop-3zknud/deployments/3434
commit
27a5c533b5
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue