kopia lustrzana https://github.com/cheeaun/phanpy
Need location.search too because Search page is using it
rodzic
27c7a2dee9
commit
9401fc38e1
|
@ -322,7 +322,8 @@ function StatusPage() {
|
|||
);
|
||||
|
||||
const closeLink = useMemo(() => {
|
||||
const pathname = snapStates.prevLocation?.pathname;
|
||||
const { prevLocation } = snapStates;
|
||||
const pathname = prevLocation?.pathname + (prevLocation?.search || '');
|
||||
if (
|
||||
!pathname ||
|
||||
matchPath('/:instance/s/:id', pathname) ||
|
||||
|
|
Ładowanie…
Reference in New Issue