res.redirect('back') with parameters

后端 未结 7 1995
刺人心
刺人心 2020-12-23 09:44

I have a register form on every page of my website. During registration some error may occur. After catching the error, I have to return the user to the previous page, sho

7条回答
  •  自闭症患者
    2020-12-23 10:05

    you can use connect-flash package to send a error or successfull message.

    https://www.npmjs.com/package/connect-flash

提交回复
热议问题