1
I’m with an application that when the person registers, he plays to a page and after 3.5s he redirects to the other page, but I wanted him to redirect with the query I need, to already appear the registered person.
Code of the party that redirects to the successful registration page:
const db = await Database
await createProffy(db, { proffyValue, classValue, classScheduleValues })
let queryString = "?subject=" + req.body.subject
queryString += "&weekday=" + req.body.weekday[0]
queryString += "&time=" + req.body.time_from[0]
return res.redirect('/success-proffy' + queryString)
The page comes with that query up there, as below:
After 3.5 seconds it redirects to the Study page:
<script>
setTimeout(() => {
location.href = '/study'
}, 3500)
</script>
I need the query to go to that Study page too, just like it was for success.
NOTE: this setTimeOut is directly in the HTML of the successful page!!
Thank you very much, Lucas, it worked perfectly, you’re wild!!
– Lucas Alves
just don’t forget to mark the question as answered
– Lucas