Change redirect and text on commit

This commit is contained in:
Berkeley Martinez
2015-10-06 23:33:17 -07:00
parent 3273593b9c
commit f5966c0959
2 changed files with 2 additions and 4 deletions

View File

@@ -204,7 +204,7 @@ export default function commit(app) {
msg = `No pledge found for user ${user.username}.`;
}
req.flash('errors', { msg });
return res.redirect('/commit');
return res.redirect(`/${user.username}`);
},
next
);