From 5ac5eb550380e9c9a5c4fdbbbf08fadbe01ff4a9 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 7 Jul 2016 21:18:35 +0200 Subject: client/general: refactor URL parameter handling --- client/js/controllers/help_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/js/controllers/help_controller.js') diff --git a/client/js/controllers/help_controller.js b/client/js/controllers/help_controller.js index f7dcafa..4c42d0b 100644 --- a/client/js/controllers/help_controller.js +++ b/client/js/controllers/help_controller.js @@ -15,9 +15,9 @@ module.exports = router => { new HelpController(); }); router.enter('/help/:section', (ctx, next) => { - new HelpController(ctx.params.section); + new HelpController(ctx.parameters.section); }); router.enter('/help/:section/:subsection', (ctx, next) => { - new HelpController(ctx.params.section, ctx.params.subsection); + new HelpController(ctx.parameters.section, ctx.parameters.subsection); }); }; -- cgit v1.3