mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Replacing .html
This commit is contained in:
parent
36a564498b
commit
447cbfc6a2
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@ export default function AllQuestions({ router }) {
|
|||
setData(data)
|
||||
})
|
||||
setSearchTerm(router.query.q ? decodeURIComponent(router.query.q) : '')
|
||||
router.replace(
|
||||
`${router.pathname}${e.target.value && '?q='}${encodeURIComponent(
|
||||
e.target.value
|
||||
)}`,
|
||||
undefined,
|
||||
{ shallow: true }
|
||||
)
|
||||
}, [])
|
||||
|
||||
if (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue