mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Need location.search too because Search page is using it
This commit is contained in:
parent
27c7a2dee9
commit
9401fc38e1
1 changed files with 2 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue