I’m trying to send some hidden data in a url redirect in NextJs 13.
i’m using next router like this
this is my actual url
let url =
/blog/view/${BlogType}/${blogId}“
i want to hide the parameter data from the url so im using router.push(url, as, options)
router.push({pathname: url,query: data,},url,);
it redirects me to new component as expected and i get the data in url query but on page refresh there is no data in url query.
im also using redux state library but same thing happens with the state when i refresh the page it loose the data
what are possible ways to get the hidden data on url redirect and keep the same data on page reload or refresh
Thari Raw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.