diff --git a/routes/routes-account.js b/routes/routes-account.js index 612dffa0857102eb19a9c238dbca22cf757bacdb..84ddbec3c5cb3bbf42f0cc888dfa8189b09fc52e 100644 --- a/routes/routes-account.js +++ b/routes/routes-account.js @@ -253,7 +253,7 @@ module.exports = function (app, config, passport, i18n) { else { req.flash('success', 'Profile updated!'); } - res.redirect('lang+/account/profile'); + res.redirect('/profile'); }) } } else { @@ -292,7 +292,7 @@ module.exports = function (app, config, passport, i18n) { else { if ( newPwd != retypePwd ) { req.flash('error', "Passwords do no match. Please make sure you re-type your new password correctly.") - res.redirect(lang+'/account/security') + res.redirect('/security') } else { // update password