Currently a user comes to my register page with an invitation ID
Example: http://www.mysite.com/user/register/50e203eb4d37bdfd22000042
The page loads and the form loads etc.... all is great. I then do some back end validation and if validation fails I call the res.render with the messages and the form data:
res.render('user/register', {
messages: messages
, form: form
});
It all works as expected however when the render occurs it puts the user back to:
http://www.mysite.com/user/register (its missing the invite_id)
How can I pass along a URL param with the res render?
If I do:
res.render('user/register/50e203eb4d37bdfd22000042', {
messages: messages
, form: form
});
Its actually looking for that 50e203.... file and giving me the 404 not found
Thanks!