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
447cbfc6a2
commit
eec6f420b6
1 changed files with 2 additions and 3 deletions
|
@ -24,9 +24,8 @@ export default function AllQuestions({ router }) {
|
||||||
})
|
})
|
||||||
setSearchTerm(router.query.q ? decodeURIComponent(router.query.q) : '')
|
setSearchTerm(router.query.q ? decodeURIComponent(router.query.q) : '')
|
||||||
router.replace(
|
router.replace(
|
||||||
`${router.pathname}${e.target.value && '?q='}${encodeURIComponent(
|
`${router.pathname.replace('.html', '')}${e.target.value &&
|
||||||
e.target.value
|
'?q='}${encodeURIComponent(e.target.value)}`,
|
||||||
)}`,
|
|
||||||
undefined,
|
undefined,
|
||||||
{ shallow: true }
|
{ shallow: true }
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue