SyntaxFix
Write A Post
Hire A Developer
Questions
use encodeURIComponent function to fix url, it works on Browser and node.js
res.redirect("/signin?email="+encodeURIComponent("[email protected]")); > encodeURIComponent("http://a.com/a+b/c") 'http%3A%2F%2Fa.com%2Fa%2Bb%2Fc'