Commit e4b19690 authored by Corentin Mors's avatar Corentin Mors
Browse files

Fix redirect after add task

parent a412eb7a
......@@ -94,7 +94,7 @@ Task = mongoose.model('Task');
// If it worked, set the header so the address bar doesn't still say /adduser
res.location("checklists");
// And forward to success page
res.redirect("/checklists");
res.redirect("/checklists/"+req.params.id);
},
//JSON response will show the newly created user
json: function(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment