diff --git a/src/routes/accounts.js b/src/routes/accounts.js index abe1929ce5..14382bd568 100644 --- a/src/routes/accounts.js +++ b/src/routes/accounts.js @@ -7,7 +7,7 @@ module.exports = function (app, middleware, controllers) { var middlewares = [middleware.checkGlobalPrivacySettings]; var accountMiddlewares = [middleware.checkGlobalPrivacySettings, middleware.checkAccountPermissions]; - setupPageRoute(app, '/uid/:uid/:section?', middleware, [], middleware.redirectUidToUserslug); + setupPageRoute(app, '/uid/:uid/:section1?/:section2?', middleware, [], middleware.redirectUidToUserslug); setupPageRoute(app, '/user/:userslug', middleware, middlewares, controllers.accounts.profile.get); setupPageRoute(app, '/user/:userslug/following', middleware, middlewares, controllers.accounts.follow.getFollowing);