Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

313
Views
Flash message not showing after complex redirect [NodeJS]

After a successfull post on my site I want to redirect the user and show them a success message. It works if I try to redirect like this:

req.flash("flash", "It's live!");       
return res.status(200).redirect(`/post`); 

But when I try it with variables like this:

req.flash("flash", "It's live!");
return res.status(200).redirect(`../act/${variable}/${variable2}`);

It redirects correctly but doesn't show the "It's live!" message. Why could that be?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!