Encountering an issue while trying to open a new page using NextJS router.
The parameter was passed as follows:
router.push({
pathname: '/',
query: { id: '12344567' },
})
Occasionally, the page redirects to something like:
/%3Fid=12344567
This occurrence is sporadic and perplexing, making it challenging to debug.