mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add query string to /home to preserve active Search
This commit is contained in:
parent
dde80091b4
commit
c4d9186ea4
1 changed files with 6 additions and 2 deletions
|
|
@ -89,7 +89,9 @@ export default function Home(): JSX.Element {
|
|||
// return
|
||||
// }
|
||||
// }
|
||||
router.push(`/home`)
|
||||
const query = window.sessionStorage.getItem('q')
|
||||
router.push(`/home?${query}`)
|
||||
// router.push(`/home`)
|
||||
}, [router, viewerData, article])
|
||||
|
||||
const goPreviousOrHome = useCallback(() => {
|
||||
|
|
@ -103,7 +105,9 @@ export default function Home(): JSX.Element {
|
|||
// return
|
||||
// }
|
||||
// }
|
||||
router.push(`/home`)
|
||||
const query = window.sessionStorage.getItem('q')
|
||||
router.push(`/home?${query}`)
|
||||
// router.push(`/home`)
|
||||
}, [router, viewerData, article])
|
||||
|
||||
const actionHandler = useCallback(
|
||||
|
|
|
|||
Loading…
Reference in a new issue