Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

send a message while redirecting

hello please I want to send a message while redirecting but I got an error

let message = "An error ocoured while updating user record to ahow verified."
res.redirect(`/verified/error=true&message=${message}`)

this is the route

app.get("/verified", (req, res) => {
  res.render("auth-verified-email");
})

error

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Cannot GET /verified/error=true&message=Link%20has%20expired%20.Please%20sign%20up%20again

>Solution :

Try this :

app.get("/verified/:params", (req, res) => {
  res.render("auth-verified-email");
})
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading