mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Replacing .html
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user